"I have two other packages, example.go and user.go"  - I mean these files 
example.go and user.go are in different directories not the same package,
and have the package names "package example" and "package user". The 
main.go is also in different directory with "package main".

On Tuesday, April 6, 2021 at 6:55:05 PM UTC+3 Brian Candler wrote:

> These may be helpful:
> https://golang.org/doc/code#Organization
> https://golang.org/doc/faq#How_do_I_create_a_multifile_package
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/e5066665-e596-42a2-8b3e-7a1e30677eban%40googlegroups.com.

Reply via email to