Re: [go-nuts] Re: How to constant ?!

2019-05-28 Thread David Finkel
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 ( >>

[go-nuts] Re: How to constant ?!

2019-05-28 Thread Trig
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 >

[go-nuts] Re: How to constant ?!

2019-05-28 Thread Trig
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,