fix import

This commit is contained in:
tsmethurst 2022-12-13 13:20:14 +01:00
parent 2c3b79ac7a
commit 70f50383fe

View file

@ -65,7 +65,11 @@ func main() {
fmt.Fprint(output, "// THIS IS A GENERATED FILE, DO NOT EDIT BY HAND\n")
fmt.Fprint(output, license)
fmt.Fprint(output, "package config\n\n")
fmt.Fprint(output, "import \"codeberg.org/gruf/go-bytesize\"\n\n")
fmt.Fprint(output, "import (\n")
fmt.Fprint(output, "\t\"time\"\n")
fmt.Fprint(output, "\n")
fmt.Fprint(output, "\t\"codeberg.org/gruf/go-bytesize\"\n")
fmt.Fprint(output, ")\n")
generateFields(output, nil, reflect.TypeOf(config.Configuration{}))
_ = output.Close()
_ = exec.Command("gofumports", "-w", out).Run()