Is there a way to declare an array (or slice) that is indexed by a type
derived from int, rather than indexed by int? My intent is to have the
compiler complain if I index the array/slice with a generic int rather than
the specific int-derived type I'm supposed to use. This will help verify
I've been trying to do something simple like this, but I'm not
interested in following symlinks. Here I just am interested in summing
all subdirectories from my start directory. But I'm not geting
consistent sums, especially if I start from my home directory.
I guess I'm not handling
Hi kalekold,
It looks like it is a stream of JSON objects?
If so, I suspect this is expected?
See related discussion here (for 'go list -m -u -json' in this case), along
with sample code for parsing:
https://github.com/golang/go/issues/27655
--thepudds
On Saturday, October 6, 2018 at
You can make some tests to check the final binary sizes, which will not
spend you much time. :)
The official linker does try to remove many unused functions.
Unused functions really need more time to compile.
On Saturday, October 6, 2018 at 10:08:43 AM UTC-4, Vasiliy Tolstov wrote:
>
> Hi!
> I
It should be:
[{
"Path": "github.com/fatih/color", "Version": "v1.7.0",
"Info": "/media/Data/Projects/Go/pkg/mod/cache/download/
github.com/fatih/color/@v/v1.7.0.info",
"GoMod": "/media/Data/Projects/Go/pkg/mod/cache/download/
github.com/fatih/color/@v/v1.7.0.mod",
"Zip":
.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
"out of memory" in Go is not a real (or general) panic
It is a fatal error and will crash your program without a saving mechanism.
https://groups.google.com/forum/#!topic/golang-dev/wUEWhk2jtHM
https://github.com/golang/go/issues/16843
On Sat, 6 Oct 2018, at 3:07 PM, 'kalekold' via golang-nuts wrote:
> `go mod download -json` does not product valid json? Is this a known
> issue or am I missing something?
Do you have an example that shows the invalid json?
--
You received this message because you are subscribed to the Google
Hi!
I have some data that can be formatted with json, text and binary form.
Does i need to split this on three parts (json, text, binary) to avoid
compile time and run time overhead (and disk size of resulted binary)
if user want to use only one format (for example binary). Or go
compiler remove
`go mod download -json` does not product valid json? Is this a known issue
or am I missing something?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
1. What are the "distribution" considerations?
Considering Windows targets - can we have all the required libraries
bundled in the final executable?
2. Can the apps be cross built? i.e. Built on Linux for macOS and
windows`targets?
thanks for pointers, srini
On Friday, September 14,
In case you missed it, the ACCU 2019 call for proposals is now open.
https://cfp.conference.accu.org
Whilst there is lots of C and C++ content, there is also Java, Kotlin, Python,
Ruby, D, etc. Meson, CMake, Git, Mercurial, Breezy, TDD, BDD, etc. It's a
conference about programming, programming
On Sat, 6 Oct 2018 at 08:57, Scott Cotton wrote:
>
>
> On Fri, 5 Oct 2018 at 23:26, Ian Lance Taylor wrote:
>
>> On Fri, Oct 5, 2018 at 2:10 PM, Scott Cotton wrote:
>>
>
>
>> In fact
>> we definitely do want to add other preemption checks that occur at
>> points other than function entry
On Sat, 6 Oct 2018 at 02:10, Ian Lance Taylor wrote:
> On Fri, Oct 5, 2018 at 3:21 PM, Scott Cotton wrote:
> >
> > On Fri, 5 Oct 2018 at 23:46, Scott Cotton wrote:
> >>
> >> Thanks much for the info.
> >>
> >> Do you have any more pointers about how one may assess whether or ensure
> >> that a
14 matches
Mail list logo