New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reform-db: gofmt error: exit status 2 #173
Comments
Please try
|
Wow. That was really fast. Thank you very much @AlekSi, that helped me, code is generated now. But what's the problem? Also i have bunch of enumerated types that marked as FIXME, what should i do with them? Basically that's nullable strings, is it right? |
It is hard to say. Please try when you are not under time pressure:
type MyEnum string
const (
Foo MyEnum = "foo"
Bar MyEnum = "bar"
)
type Model struct {
Enum MyEnum `reform:"enum"`
} |
Here you go:
|
Are you writing code outside of GOPATH? Are you using Go modules? |
I assume my GOPATH is fine as my GOPATH is part of my PATH.
Btw i checked just now and it looks like this panic is not infuencing the results - all my schema was generated in .go files even without -gofmt=false, but that error confused me and I didn't checked that earlier. |
Yeah, but do you have projects' code in the GOPATH? Where are other files of your project located? |
My project is in ~/go/src/projectname. I thought db-reform is a standalone utility so i launched it in ~, and after you said about GOPATH i tried to launch it in ~/go, but nothing changed |
Normally, one should run |
Even after launching it in the project folder same error occured. Documentation with full examples would make this project beginner-friendly for sure, i still don't figured out how to properly use NewDB :( |
Hello! I'm really new to golang, i wish i can provide more info but this is all i have now. Running
reform-db -db-driver=postgres -db-source=postgres://user:pass@localhost:port/database init
returnsreform-db: gofmt error: exit status 2
, even if it's simple 2 tables "just for test" database. I'm using:go get -u gopkg.in/reform.v1/...
so I assume I'm using v1.3.2For now i don't know what to do, I'm deadlined so i have to choose between other options like kallax or pg, but I really like the simplicity and ideology of reform, so I hope this will be fixed.
The text was updated successfully, but these errors were encountered: