On Tue, May 28, 2019 at 11:04 AM Trig wrote:
> Whoops... forgot to add the top line to the code syntax. I really wish
> you could edit existing posts in this group.
>
> On Tuesday, May 28, 2019 at 10:03:05 AM UTC-5, Trig wrote:
>>
>> package main
>>
>> import "fmt"
>>
>> const (
>>
Whoops... forgot to add the top line to the code syntax. I really wish you
could edit existing posts in this group.
On Tuesday, May 28, 2019 at 10:03:05 AM UTC-5, Trig wrote:
>
> package main
>
> import "fmt"
>
> const (
> ExposedConstant = "1" // exposed outside of package
>
package main
import "fmt"
const (
ExposedConstant = "1" // exposed outside of package
internalConstant = "2" // for use anywhere in package only
)
func main() {
const functionConstant = "3" // usable anywhere in main func
fmt.Println(ExposedConstant, internalConstant,