Note that `now := time.Now().Local()` on the playground always is `2009-11-10
23:00:00 + UTCZ`. Your loop works correctly and ends with `[2009-11-09
2009-11-16]`.
Try to run it locally and see.
Lutz
Von: golang-nuts@googlegroups.com im Auftrag von
I tried to run a time script. But according to the code, it should return a
very long list of date range. But it failed to do so. Can you please give me an
explanation or some documentation which specifies that golang doesn't support
time values (like it doesn't support for file handling operati
I've always considered Google Trends to be a dubious source of *actual*
trending and usage. Maybe I'm missing something but isn't it just based on
searches, not usage.
Go is absolutely fine because it is a far better approach than Python for most
things and people are realizing it, they might n
I reopened an old bug for this, and perhaps it will get some attention.
https://github.com/golang/go/issues/6623
On Sunday, January 12, 2020 at 1:19:59 AM UTC-5 Fazlul Shahriar wrote:
> I also wrote a tool like that: https://github.com/fhs/golinecov
> It displays coverage report from 'go test' wi
You could use json iterator’s Stream type if you prefer to feel better by
having it wrapped in a library. It does the same thing of course. As the name
suggests it can be used to incrementally write the json to a writer if that’s
what you’d like.
https://godoc.org/github.com/json-iterator/go#St
Dnia 2020-01-16, o godz. 03:12:49
JuciÊ Andrade napisał(a):
> Liam has a point. Go is not attracting attention as it used to do. Go
> ceased to generate news.
Google Trends are based on searched terms, not on an analysis of some
mainstream media headlines. My interpretation of OP linked "flat"
Dnia 2020-01-15, o godz. 12:34:54
Liam napisał(a):
> Google Trends graph showing past 5y of Java, Python, C#, Node.js, Go
>
> https://trends.google.com/trends/explore?date=today%205-y&q=%2Fm%2F07sbkfb,%2Fm%2F05z1_,%2Fm%2F07657k,%2Fm%2F0bbxf89,%2Fm%2F09gbxjr
Posted chart tells in loud that Go us
Mea Culpa.
I was building using a script; to get a solaris build I had disabled cgo.
Sorry to have wasted your time, and thanks for the responses - I would have
updated sooner, but it as a new poster, it didn't appear immediately.
On Tuesday, 21 January 2020 13:24:27 UTC, Graham Nicholls wrote
On Tue, Jan 21, 2020 at 5:24 AM Graham Nicholls
wrote:
>
> I have the following code:
>
> 3 /*
> 4 selinux.go - return the sestatus
> 5
> 6
> 7 The lines below are preamble to the import of "C" -
> 8 they should be left untouched
> 9 */
> 10
> 11 // //cgo linux CFLAGS: -Iinc
Could it be that the files from disk are "hot" in cache on the second run?
Try emptying the cache before the second run. Linux:
sync; echo 3 > /proc/sys/vm/drop_caches
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this gr
What if you remove lines 33-35? Does it panic?
Maybe some other init function fills testFunctionsMap?
For maps, use a nil check before creation, not length check!
2020. január 21., kedd 14:24:27 UTC+1 időpontban Graham Nicholls a
következőt írta:
>
> I have the following code:
>
> 3 /*
> 4
I hope you already figured this out..
The documentation for SetDeadline in the tls package specifically says:
After a Write has timed out, the TLS state is corrupt and all future
> writes will return the same error.
>
>
--
You received this message because you are subscribed to the G
Hi everybody,
I develop a script which parse a file and foreach row I perform several
treatment who need to use an index to access at a file.
Foreach row I create a goroutine. the number of goroutine is limited to 8
by using the package from "github.com/korovkin/limiter" and GOMAXPROC=8
For eac
I have the following code:
3 /*
4 selinux.go - return the sestatus
5
6
7 The lines below are preamble to the import of "C" -
8 they should be left untouched
9 */
10
11 // //cgo linux CFLAGS: -Iinclude -I.
12 // #cgo pkg-config: libselinux
13 // #include
14 // #include
On Tuesday, 21 January 2020 11:04:28 UTC, Orson Cart wrote:
>
> I guess I'm looking for something like opaque pointers which were employed
> to good effect in C to hide implementation details from 'peer' source
> files: https://en.wikipedia.org/wiki/Opaque_pointer#C
>
>
You can hide implementatio
Come to think of it, that might actually just be the answer you are looking
for: C and Go are the same, in terms of visibility rules they allow. Any
identifier in the namespace is either unexported (static in C) and visible
to exactly this compilation unit, or it's exported (not static, in C) and
e
On Tue, Jan 21, 2020 at 12:04 PM Orson Cart
wrote:
> I'm still new to using Go so maybe I'm missing something of the 'culture'
> but I find that I'd often like to be able to hide implementation detail on
> a level that is more finely grained than the package.
> […]
> If as I suspect there is no w
I'm still new to using Go so maybe I'm missing something of the 'culture'
but I find that I'd often like to be able to hide implementation detail on
a level that is more finely grained than the package.
I'm aware that using case it's possible to define for instance struct
members that are not
18 matches
Mail list logo