...if every function is going to be available (exported) is there a reason not to put them in package main?
One reason could be code reuse. If the same functions are used across several scripts, you at minimum save a little typing by keeping them in a separate file where they can be pulled in by all the scripts that need them.
Dave
In reply to Re: Re: Re: Re: Re: Confused about splitting program into multiple files.
by davido
in thread Confused about splitting program into multiple files.
by disciple
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |