Re: [go-nuts] How do number literals work in go

2021-05-07 Thread iammadab
log post > <https://blog.golang.org/constants#:~:text=In%20Go%2C%20const%20is%20a,%22%2B%22pher%22)%20.>. > > I recommend reading that, it's more clear than my explanation :) > > On Fri, May 7, 2021 at 8:10 PM iammadab wrote: > >> I solved a problem on exercism t

[go-nuts] How do number literals work in go

2021-05-07 Thread iammadab
I solved a problem on exercism that involved bit shifting. There is a chess board with 64 squares, a grain of wheat is placed on the first square, for the second square you double the number of grains from the first (1 +1) = 2. For the third you double the previous (2 + 2) = 4. Continue this un

Re: [go-nuts] Re: Multi-word Project Name

2021-04-28 Thread iammadab
be the option to use `_`, which is valid inside an > identifier. > > On Wed, Apr 28, 2021 at 10:40 PM iammadab wrote: > >> Apparently, because it is a top level module and it won't be exporting >> anything it is actually fine. >> Thanks. >> >> On W

[go-nuts] Re: Multi-word Project Name

2021-04-28 Thread iammadab
t 10:14:55 PM UTC+2 iammadab wrote: > >> Hi, I have a github repository name (sherlock-server) of which I have >> found no one word description that captures the essence. >> >> Can I name the module github.com/username/sherlock-server? >> There will be internal pack

[go-nuts] Multi-word Project Name

2021-04-28 Thread iammadab
Hi, I have a github repository name (sherlock-server) of which I have found no one word description that captures the essence. Can I name the module github.com/username/sherlock-server? There will be internal packages in it and so their imports will contain the above module name. What is the be