Closed qu1queee closed 6 years ago
the root of aviator
is the main
package and both main.go
and flags.go
are related to the main
package. So if you want to build aviator
with go build
you need to build the whole package. $ go build main.go
is not enough, as it uses function from other files, like in this case flags.go
.
regards
Its there a reason why some methods used in
main.go
are defined in another file callflags.go
? When trying to generate the binary via thego build
I have the following error:If I defined the methods from
flags.go
into the main.go, then I do not have a problem anymore.Regards, Enrique Encalada