Skip to content
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

Need sub.go codes #15

Open
wuzzdingbatch opened this issue Apr 9, 2018 · 2 comments
Open

Need sub.go codes #15

wuzzdingbatch opened this issue Apr 9, 2018 · 2 comments

Comments

@wuzzdingbatch
Copy link

In "The Go way" section, IMHO we need to reveal sub.go to ease the understanding how the sub.go 'template' works.

@alco
Copy link
Owner

alco commented Apr 17, 2018

@wuzzdingbatch Could you provide more info? I'm not familiar with sub.go.

@wuzzdingbatch
Copy link
Author

I learnt go from this page and it helps me a lot. But to explain dependency from other module/file like sub.go, I feel something missing with it. The main.go 'suddenly' calls a method from sub.go and there is no explanation how it was coded on sub.go to have its functions exported. I think the best way is to put the sub.go right after main.go so that the new learners like me can somehow knows how it works. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants