[go-nuts] unMarshal DER from snmp

2025-09-01 Thread Steve Simon
ables? Currently I am doing this by hand for each table I need, which works, but it is all rather painful. Surely there is a better way? -Steve -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop r

[go-nuts] Re: Go Regexp debugger?

2024-11-05 Thread Steve Mynott
To (partly) answer my own question. https://github.com/stevedomin/rego The Heroku link is dead, but the code runs fine locally with an added go.mod file. S On Tue, 5 Nov 2024 at 13:01, Steve Mynott wrote: > > I'm aware of https://regex101.com/ which is fine 90% of the time for >

[go-nuts] Go Regexp debugger?

2024-11-05 Thread Steve Mynott
great if it existed? -- Steve Mynott rsa3072/629FBB91565E591955B5876A79CEFAA4450EBD50 -- 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+un

Re: [go-nuts] [security] Go 1.22.5 and Go 1.21.12 are released

2024-07-03 Thread Steve Mynott
I'm using curl -L -s "https://golang.org/dl/?mode=json"; | jq -r '.[0].version' which returns go1.22.5 Cheers Steve On Wed, 3 Jul 2024 at 12:26, kristian.koehler via golang-nuts wrote: > > Hi, > > I have a script that loads the current Go version from the

[go-nuts] go build v go build .

2024-04-24 Thread Steve Mynott
Is there any difference between "go build" and "go build ."? -- Steve Mynott rsa3072/629FBB91565E591955B5876A79CEFAA4450EBD50 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and

Re: [go-nuts] Re: help with thread limit

2024-02-01 Thread Steve Roth
short-term solution to get my site back up. Thanks, Steve On Thu, Feb 1, 2024 at 8:34 AM Steven Hartland wrote: > To be honest I would question if its a usable solution if they are > limiting that low on threads, so is the fix to switch or have the provider > increase the limit to a s

[go-nuts] Re: help with thread limit

2024-02-01 Thread Steve Roth
, and crashing when cgroups won't let it. Surely there must be some way to get a Go program to run successfully in an environment with process limits? Any further suggestions would be greatly appreciated. Regards, Steve On Wed, Jan 31, 2024 at 6:43 PM Steve Roth wrote: > I am running Go cod

[go-nuts] help with thread limit

2024-01-31 Thread Steve Roth
number of cores? Many thanks, Steve -- 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. To view

[go-nuts] Re: error handling thoughts

2023-07-27 Thread Steve Roth
orward. Thanks, all, for the responses. Steve On Thu, Jul 27, 2023 at 8:03 AM Steve Roth wrote: > The ongoing Go survey asked a question about satisfaction with error > handling in Go. I'd like to express an opinion on it that I haven't seen > elsewhere, for which there was

[go-nuts] error handling thoughts

2023-07-27 Thread Steve Roth
me, the ideal solution would be to suppress the compiler warning about removing the else, when doing so would break the code altogether. Regards, Steve -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this grou

Re: [go-nuts] Generic instance creation inference

2023-05-03 Thread Steve Heyns
ight be in the >> method set of P by virtue of the fact that all types in P implement m. We >> hope to remove this restriction in a future release. > > > So far, we haven't managed to remove this restriction. It's surprisingly > complicated. > I tend to spell that

[go-nuts] Generic instance creation inference

2023-05-03 Thread Steve Heyns
Ran into this and I was wondering if it was a bug or not. Assuming "Foo" is an interface with a function of "Bar", then the following function should have a type reference of T and a pointer reference of P that implements the Foo interface, and is bound to the Type of T (https://gotipplay.golan

[go-nuts] How to test code using windows when syscalls are involved?

2023-01-05 Thread Steve Wu
many of my colleges are working on Windows, they fail to run `go test` commands due to syscalls: our projects are heavily using syscalls, their existences make it impossible to compile on Windows, which lead to this situation where most of my colleges simple can't run any test code even it's as

Re: [go-nuts] workspace question

2022-10-12 Thread Steve Roth
tted. I'm still surprised it works without that; it seems weird to have a dependency on another module and *not* list it with all of the other dependencies. At any rate, I have it working now based on your help — much appreciated. Steve On Tue, Oct 11, 2022 at 11:22 PM Jan Mercl <0xj..

[go-nuts] workspace question

2022-10-11 Thread Steve Roth
two modules at once, and yet I've had no success in getting it set up. Any suggestions? Regards, Steve -- 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

Re: [go-nuts] Re: private go documentation server similar to https://pkg.go.dev

2022-09-12 Thread Steve Mynott
e; GOMOD=/dev/null >> >> me@3900x:~$ >> >> -j >> >> -- > 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 > ema

[go-nuts] State of Go video for 1.19?

2022-08-06 Thread Steve Mynott
Is a State of Go video for 1.19 likely to appear? My quick search fails to find one. -- Steve Mynott rsa3072/629FBB91565E591955B5876A79CEFAA4450EBD50 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this grou

Re: [go-nuts] Shell tab-completion

2022-06-30 Thread Steve Mynott
ied them yet! > I'm using and can recommend https://github.com/zsh-users/zsh-completions which seems actively maintained. -- Steve Mynott rsa3072/629FBB91565E591955B5876A79CEFAA4450EBD50 -- You received this message because you are subscribed to the Google Groups "golang-nuts&

Re: [go-nuts] Re: New edition of the Go Programming Language comming soon ?

2022-03-14 Thread Steve Mynott
> email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/35da213c-0ff6-4677-b800-f4aa79ea0130n%40googlegroups.com. -- Steve Mynott rsa3072/629FBB91565E591955B5876A79CEFAA4450EBD50 -- You received this message be

[go-nuts] Go doc examples from the command line?

2022-01-21 Thread Steve Mynott
I've been using, for example. "go doc -all encoding/csv" to display docs from the command line. Is there any of displaying the code examples visible from the go.dev site from the command line for a particular package in the std lib? -- Steve

Re: [go-nuts] profiling help

2022-01-12 Thread Steve Roth
Thanks, Kurtis, The production version of this code runs as a regular web server. I was profiling in CGI just to simplify the configuration. Regards, Steve On Wed, Jan 12, 2022 at 5:34 PM Kurtis Rader wrote: > FWIW, I had the same suspicion as Robert. In my experience a CGI task t

Re: [go-nuts] profiling help

2022-01-12 Thread Steve Roth
ation of a 13MB block in there. Tracing that, I found the root cause, which was corrupted data in my site database. Many thanks to all for the help. Regards, Steve On Wed, Jan 12, 2022 at 4:20 PM robert engels wrote: > Are you certain that the requests aren’t super short - so all

Re: [go-nuts] profiling help

2022-01-12 Thread Steve Roth
profiling as you suggest. (And of course I've reviewed pprof blog post many times.) Regards, Steve On Wed, Jan 12, 2022 at 2:58 PM Ian Lance Taylor wrote: > On Wed, Jan 12, 2022 at 1:54 PM Steve Roth wrote: > > > > I am attempting to profile my code, and I'm unable to int

[go-nuts] profiling help

2022-01-12 Thread Steve Roth
the time is mcall park_m schedule findrunnable stopm mPark notesleep futexsleep futex Again I have no clue what this is doing. Any guidance is welcome, including pointers to other forums better suited for such questions. Regards, Steve -- You received this message because you are subscr

Re: [go-nuts] Re: New site go.dev is awful

2021-11-23 Thread Steve Mynott
as if it were built for programmers by programmers, but it looks like the new target audience is corporate adoption and mobile which will help us all in the long term. It's clearly the product of much hard work, and it's certain to have features missing in the old. -- Steve Mynott rsa3

[go-nuts] unsafe string to []byte

2021-07-27 Thread Steve Roth
The implementation of io.WriteString appears to allocate a new byte slice and copy the string into it: w.Write([]byte(s)) Many third party libraries avoid the allocation and copy with techniques like: var b []byte sh := (*reflect.StringHeader)(unsafe.Pointer(&s)) bh := (*reflect.SliceHeader)(uns

Re: [go-nuts] Is this a typo/bug in runtime.heapBitsSetType?

2021-06-09 Thread steve wang
Thanks for your anwer. It's my misreading. On Thursday, June 10, 2021 at 2:25:31 PM UTC+8 axel.wa...@googlemail.com wrote: > The comment says "Advance two words", so I assume no? > > On Thu, Jun 10, 2021 at 6:14 AM steve wang wrote: > >> go 1.16.5 >> ru

[go-nuts] Is this a typo/bug in runtime.heapBitsSetType?

2021-06-09 Thread steve wang
go 1.16.5 runtime/mbitmap.go:946 1. switch h.shift { 2. case 0: 3. *h.bitp &^= mask3 << 0 4. *h.bitp |= hb << 0 5. case 1: 6. *h.bitp &^= mask3 << 1 7. *h.bitp |= hb << 1 8. case 2: 9. *h.bitp &^= mask2 << 2 10. *h.bitp |= (hb & mask2) << 2 11. // Two words written

[go-nuts] Go Semantics Aware diff tool?

2021-04-14 Thread Steve Mynott
I'm aware tools exist to parse go and a quick google search search fails me but I was wondering if there was a utility which was a go-aware diff which I could use like "git diff master" which printed out a list of funcs changed? Cheers Steve -- Steve

[go-nuts] Re: The GO equiv. to 'tail -f' ?

2021-02-20 Thread Steve Murphy
On Thursday, 18 February 2021 at 18:50:43 UTC Steve Murphy wrote: > >> I'm having a hard time finding some tools in GO to follow log files and >> make real-time commentary about stuff like alerting about outages now >> underway, and making alerts over things that *shou

[go-nuts] The GO equiv. to 'tail -f' ?

2021-02-18 Thread Steve Murphy
cle or two some months ago, but now nothing shows up in my search engine. Many thanks murf -- Steve Murphy ParseTree Corporation -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emai

[go-nuts] Re: Go based xml manipulation library

2021-02-11 Thread Steve Roth
github.com/beevik/etree does much of what you're looking for. Steve On Thursday, February 11, 2021 at 1:10:51 PM UTC-8 sunto...@gmail.com wrote: > Is there any Go library that allow certain following-sibling > <https://stackoverflow.com/a/47628382/2125837> manipulation? > &g

[go-nuts] prevent unnecessary escape to heap

2021-02-04 Thread Steve Roth
copy of the pointer it's given, so "buf" escapes to the heap. How can I implement a writeByte function, against an unknown io.Writer implementation, that doesn't allocate heap memory? Thanks, Steve -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] A value saved in an interface{} field in a struct not usable in func with interace{} arg

2021-01-12 Thread Steve Murphy
> > Have you tried printing the type of what you receive before attempting the > type assertion? I suspect that the system you are working with is passing > you a variety of different types depending on the context, so you'll need > to be flexible in what you handle. > > &

Re: [go-nuts] A value saved in an interface{} field in a struct not usable in func with interace{} arg

2021-01-11 Thread Steve Murphy
dication that someone somewhere > is passing the wrong value to the function since it almost never makes > sense to pass a pointer to interface{}. > > > > > > On Mon, 11 Jan 2021, at 4:03 PM, Steve Murphy wrote: > > Hello! > > I keep getting: > panic: interface

[go-nuts] A value saved in an interface{} field in a struct not usable in func with interace{} arg

2021-01-11 Thread Steve Murphy
1_test.go:72 +0x13a testing.tRunner(0xc000108100, 0x5570f0) /usr/lib/go-1.13/src/testing/testing.go:909 +0 How do I set realval to the (*int64) value that's in val? murf -- Steve Murphy ParseTree Corporation 57 Lane 17 Cody, WY 82414 ✉ murf at parsetree dot com ☎ 307-899-0510 -- You received

Re: [go-nuts] Re: Generics and parentheses

2020-07-18 Thread Steve Jones
I'm glad that the use of ( and ) is being reconsidered as I found their use made *reading* source code with generics more difficult (albeit whilst making parsing easier). One of the features of Go I really like is how readable the source code is and every effort should be made to maintain this

[go-nuts] Re: Generics and parentheses

2020-07-17 Thread Steve Ruble
Rather than resolving the potential ambiguities of < and > by using different symbols, could we use an unambiguous delimiter between the type parameters instead? Consider: a, b = w < x ; y > (z) The use of ; is not much harder to read or type than , and I think < and > are so close to being

[go-nuts] go.pkg.dev missing golang packages

2020-06-27 Thread Steve Roth
/freetype is not shown on go.pkg.dev. Is it a reasonable expectation that anything under github.com/golang should be documented on go.pkg.dev? And if so, what is the proper path to report this issue? Regards, Steve -- You received this message because you are subscribed to the Google Groups "g

Re: [go-nuts] golang protobuf, struct copy problem

2020-05-20 Thread Steve Simon
RPC. i decided this is the price i have to pay for the type security that protobufs offer. if anyone comes up with a clean solution i would be interested. -Steve -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from

Re: [go-nuts] Measuring cpu usage for a tree of goroutines

2020-05-12 Thread Steve Canfield
. Thanks for your help both of you! -Steve On Tue, May 12, 2020 at 1:57 PM Robert Engels wrote: > In my first response I said to use labels and referred you to a document > on how to do it. I guess Ian’s wording was clearer :) > > > On May 12, 2020, at 3:53 PM, Ian Lance Taylor wro

Re: [go-nuts] Measuring cpu usage for a tree of goroutines

2020-05-12 Thread Steve Canfield
Thanks Ian. Are there limits on how many such labels exist for the life of the process, or can be active at once? Would labeling by rpc_guid be acceptable? On Tue, May 12, 2020 at 12:06 PM Ian Lance Taylor wrote: > On Tue, May 12, 2020 at 10:31 AM Steve Canfield > wrote: > > >

Re: [go-nuts] Measuring cpu usage for a tree of goroutines

2020-05-12 Thread Steve Canfield
I feel like I must be really dense, but it doesn't seem like you are answering my question. Again, assume I have good reasons to want to know the cpu usage for every request. Let's say I want to do isolation or billing or whatever on the basis of cpu usage. Is this possible in Go?

Re: [go-nuts] Measuring cpu usage for a tree of goroutines

2020-05-11 Thread Steve Canfield
d be happy with only knowing this number when a goroutine finishes. > > I'm familiar with using pprof for measuring the entire process, but it's > not clear to me how to go from there to what was used by a particular RPC, > and I also can't enable profiling for every request.

Re: [go-nuts] Why golang allocated memory space increases?

2020-03-25 Thread steve tang
lly at any time without > 18 // notification. If the Pool holds the only reference when this > happens, the19 // item might be deallocated. > > So placing an object in the pool does not guarantee it won’t be collected > - causing a future allocation. > > On Mar 25, 2020, a

[go-nuts] Why golang allocated memory space increases?

2020-03-25 Thread steve tang
chunkCrc32Hash := crc32.NewIEEE() chunkBuf := bufferpool.GetInstance().Get() //回收buffer defer bufferpool.GetInstance().Put(chunkBuf) writer := io.MultiWriter(chunkBuf, chunkCrc32Hash) _, copyErr := io.Copy(writer, chunkResp.RawResponse.Body) if copyErr != nil && copyErr != io.EOF { logmgr.ErrorL

[go-nuts] Significance of Mon Jan 2 15:04:05 -0700 MST 2006?

2020-02-28 Thread Steve Mynott
I was just wondering what was the significance, if any, of the magic time layout as used by time.Parse()? -- Steve Mynott cv25519/ECF8B611205B447E091246AF959E3D6197190DD5 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubs

Re: [go-nuts] types of slice indices and range operators

2020-02-02 Thread Steve Roth
see what other opinions get voiced. If there is no support for the idea by anyone else, then further discussion between the two of us is moot. Regards, Steve On Sun, Feb 2, 2020 at 7:26 PM Robert Engels wrote: > I think the major difference is that by using EventID as a constrained > ty

Re: [go-nuts] types of slice indices and range operators

2020-02-02 Thread Steve Roth
. I'm simply trying to alleviate the need for excess, error-prone casting when doing so. Regards, Steve On Sun, Feb 2, 2020 at 6:37 PM Robert Engels wrote: > One last point, if you are interested in type safety, why not create > simple structs like EventList to encapsulate the inde

Re: [go-nuts] types of slice indices and range operators

2020-02-02 Thread Steve Roth
;t like my example, take a look through the standard library code: you'll find a great many instances of range loops using only the index. Regards, Steve On Sun, Feb 2, 2020 at 5:56 PM Robert Engels wrote: > You are using range incorrectly - you are using the index not the va

[go-nuts] types of slice indices and range operators

2020-02-02 Thread Steve Roth
since it does not change the semantic of any existing code; it just adds a semantic to code that currently would not compile. I solicit the community's feedback. Should this proposal be formally submitted? Regards, Steve -- You received this message because you are subscribed to the Goog

Re: [go-nuts] Re: go1.12.16 not tagged on release-branch.go1.12?

2020-01-30 Thread Steve Mynott
To answer my own question https://go-review.googlesource.com/c/go/+/217066 Cheers Steve On Wed, 29 Jan 2020 at 17:48, Tyler Compton wrote: > I think it's very reasonable to ask a simple Git workflow question on > golang-nuts without having to provide reproduction steps. > >

Re: [go-nuts] Re: go1.12.16 not tagged on release-branch.go1.12?

2020-01-29 Thread Steve Mynott
Your example reproduces the error. I'd expect ./go version to return "go version go1.12.16 linux/amd64" since that's the latest version On 29/01/2020, peterGo wrote: > Steve, > > "I don't see" > > Please provide reproducible errors. For ex

[go-nuts] go1.12.16 not tagged on release-branch.go1.12?

2020-01-29 Thread Steve Mynott
I don't see go1.12.16 tagged on release-branch.go1.12? Is this expected? -- Steve Mynott cv25519/ECF8B611205B447E091246AF959E3D6197190DD5 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and

Re: [go-nuts] go under rtems on arm?

2020-01-19 Thread Steve Simon
ducts. an this is ignoring the effort of porting the runtime. Thanks for your help, -Steve -- 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 golan

[go-nuts] go under rtems on arm?

2020-01-17 Thread Steve Simon
an external linux box to run my app and access RTEMS over the wire but it would be cleaner and easier to maintain if I could run my go app hosted on RTEMS itself. Thanks for any/all help, -Steve -- You received this message because you are subscribed to the Google Groups "golang-nuts&q

[go-nuts] Shell alias to get latest go versions?

2020-01-14 Thread Steve Mynott
Does anyone have a simple shell alias, function or similar to get the latest released versions of go? Is there a cleaner way of going this than screen scraping the website or looking at tags in git? -- Steve Mynott cv25519/ECF8B611205B447E091246AF959E3D6197190DD5 -- You received this message

[go-nuts] tcp/ip stack for bare metal

2020-01-01 Thread Steve Simon
services. i simple C based tcp/ip stack would be a reasonable alternative but i fear lwip misses some features i would need. thoughts gratefully received. -Steve -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this

[go-nuts] Open Source audit of go package dependencies for security vulnerabilities?

2019-08-13 Thread Steve Mynott
which appears similar but is basically a pay service based on node.js. Also https://www.owasp.org/index.php/OWASP_Dependency_Track_Project looks interesting but doesn't include go. Does such an open source version exist for go which is written in go and integrates easily with builds? -- St

[go-nuts] Connecting to SQL (Postgresql) instance from Go in Google Run, get "database is closed"

2019-06-03 Thread Steve West
Hi, I have a simple Go program in Cloud Run that uses the Postgres SQL driver "github.com/lib/pq" to connect to a Cloud SQL Postgresql instance in the same Google Project. I have enabled the security by setting "Apps in this project: All authorized". The database and the Cloud Run service are i

[go-nuts] Flushing keyboard buffer (cross platform) ?

2019-05-03 Thread Steve Mynott
board_buffer#Go Is there a simple way which works at least on UNIX and macOS? -- Steve Mynott cv25519/ECF8B611205B447E091246AF959E3D6197190DD5 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and sto

Re: [go-nuts] A thought on contracts

2018-09-05 Thread Steve Phillips
Interesting idea, but has the Go team expressed interest in creating such a tool? -- 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...@googleg

[go-nuts] Re: What's the status of the new Go brand?

2018-08-25 Thread Steve Roth
Hmm, I wouldn't say "nothing" has changed. The golang.org site has gotten noticeably slower, particularly the package documentation. I have no idea whether that's related to this migration but it's definitely unfortunate. Steve On Saturday, August 25, 2018 at 8:30

[go-nuts] Please take the 2017 Gopher Survey

2017-12-04 Thread Steve Francia
ual survey. Please take this 15-minute survey by Friday December 8th https://goo.gl/n9M7SB More details available at https://blog.golang.org/survey2017 Thanks to everyone who has or will shared their experiences with the Go project. Thanks, Steve -- You received this message because you are subscri

[go-nuts] Re: Go one-line installer

2017-08-01 Thread Steve Francia
Please file an issue with this information and as much details as you can. On Tuesday, August 1, 2017 at 5:38:24 PM UTC-4, Val wrote: > > Hello Steve, that looks very promising, thank you so much! > > I just tried on GCE, here is a gist > <https://gist.gi

[go-nuts] Re: Go one-line installer

2017-08-01 Thread Steve Francia
On Tuesday, August 1, 2017 at 7:49:32 PM UTC-4, Florin Pățan wrote: > > Hi, > > The idea is good but: > - it needs to modify the path to add GOROOT/bin and GOPATH/bin to it > It does. If it didn't do this you've found a bug. Please report it. > - it should allow for multiple versions of Go to be

[go-nuts] Go one-line installer

2017-08-01 Thread Steve Francia
found many of them. *Our goal is that this becomes the primary mechanism to install Go. * *To do that, we need your help testing, improving and fixing it. * The source can be found at https://go.googlesource.com/tools/+/master/cmd/getgo/ If you find any issues please report them on Github ht

[go-nuts] Re: Go import tree

2017-07-30 Thread Steve Roth
https://github.com/davecheney/prdeps is another. Steve On Saturday, July 29, 2017 at 9:55:05 PM UTC-7, Tong Sun wrote: > > Is there any tools out there that can show import tree for Go projects? > I.e., the dependency graph that shows who imports what packages. > > During `go

[go-nuts] Re: RFC: Blog post: How to not use an HTTP router

2017-06-23 Thread Steve Roth
e you meant r.URL.Path? Regards, Steve On Sunday, June 18, 2017 at 3:02:37 PM UTC-7, Axel Wagner wrote: > > Hey gophers, > > in an attempt to rein in the HTTP router epidemic, I tried writing down a) > why I think *any* router/muxer might not be a good thing to use (much > le

Re: [go-nuts] Reading stdlib for education about go?

2017-05-12 Thread Steve Mynott
e? On 12 May 2017 at 11:48, Aram Hăvărneanu wrote: > The good parts. > > -- > Aram Hăvărneanu -- 4096R/EA75174B Steve Mynott -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receivi

[go-nuts] Reading stdlib for education about go?

2017-05-12 Thread Steve Mynott
I've often seen advice that a good way of increasing language understanding is to read parts of the stdlib written in that language. What parts of the go stdlib are particularly useful for self education in general go? -- 4096R/EA75174B Steve Mynott -- You received this message becaus

[go-nuts] NNTP mirror of this mailing list?

2017-04-30 Thread Steve Mynott
I was wondering if there was a NNTP mirror of this mailing list anywhere? I couldn't see it on nntp://news.gmane.org or anywhere similar after a quick search. -- 4096R/EA75174B Steve Mynott -- You received this message because you are subscribed to the Google Groups "golang-nuts&

Re: [go-nuts] 2016 User Survey Results published

2017-03-06 Thread Steve Francia
; pconcepc...@gmail.com> wrote: > Hi Steve, > > I was more thinking on the raw agregeted data, the same that is published, > sorry for the missundertunding. > > Best, > Pablo > > On Mon, Mar 6, 2017 at 7:11 PM, Steve Francia wrote: > > We are simply providin

Re: [go-nuts] 2016 User Survey Results published

2017-03-06 Thread Steve Francia
my mind should be the same. > > Is there a reason to separate those cases? > > Not sure if possible, but I think would be nice to have a reference to the > raw data in case someone want's to do so some further analysis :) > > Best regards, >Pablo > > On Mon,

[go-nuts] 2016 User Survey Results published

2017-03-06 Thread Steve Francia
Thanks to the 3,595 people who completed our end-of-year user survey! The results have been published at https://blog.golang.org/survey2016-results -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop recei

[go-nuts] Re: Minimizing golang docker images

2017-02-24 Thread Steve Roth
ng, because that would require you to have the full OS distro and Go toolchain in that image, and then it wouldn't be small. Regards, Steve On Friday, February 24, 2017 at 7:57:45 AM UTC-8, Sankar wrote: > > Hi > > I have a bunch of services (all sources in a single git proj

Re: [go-nuts] Re: Building Go from Source / Managing my ${GOROOT}

2017-02-23 Thread Steve Mynott
oup. > 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. -- 4096R/EA75174B Steve Mynott -- You received this message because you are subscribed to

Re: [go-nuts] Go support in MIPS platform

2017-02-11 Thread Steve Phillips
I've pinged him and mentioned this thread at https://github.com/golang/go/issues/18162 ; thanks! > or compile a kernel with FPU emulation support. > I'll look more into doing exactly this, thank you. --Steve -- You received this message because you are subscribed to the Google

Re: [go-nuts] Go support in MIPS platform

2017-02-10 Thread Steve Phillips
go is a trivial "Hello, world!" program.) On the target (mips) device, I see files like /lib/libuClibc-0.9.33.2.so, with /lib/libc.so.0 being a symlink to /lib/libuClibc-0.9.33.2.so, in case that's relevant. Thanks! --Steve On Friday, February 10, 2017 at 7:58:58 PM UTC-8, S

Re: [go-nuts] Go support in MIPS platform

2017-02-10 Thread Steve Phillips
I should add that my target device's kernel doesn't have FPU (floating point) emulation, nor does it have a hardware FPU, and I therefore can't just use go1.8r3's easy-to-use mips support; already tried it. --Steve On Friday, February 10, 2017 at 7:56:40 PM UTC-8,

Re: [go-nuts] Go support in MIPS platform

2017-02-10 Thread Steve Phillips
ki/GccgoCrossCompilation makes it sounds like I should use crosstool-ng to build a version of GCC for my target architecture (mips), but can't I just use gccgo-mips-linux-gnu somehow? Some of these instructions are from 2 years ago, so at this point I don't know what will work now, in 20

[go-nuts] Re: storing transaction in context

2017-02-07 Thread Steve Roth
r the input! Steve On Tuesday, February 7, 2017 at 10:37:02 AM UTC-8, Dave Cheney wrote: > > I guess it depends on how long your transaction lasts for; it doesn't > sound like it lives for that long. IMO the advice about storing contexts in > other objects is more about "don&#

Re: [go-nuts] Re: [ANN] Go CMS with automatic JSON API for "thick client" front-ends. Feedback appreciated. (req. Go 1.8)

2017-01-20 Thread steve manuel
; > On Thursday, January 19, 2017 at 12:31:47 AM UTC+2, steve manuel wrote: > > https://github.com/ponzu-cms/ponzu > > > > screenshot: <https://github.com/ponzu-cms/ponzu> > > > <https://www.google.com/url?q=https%3A%2F%2Fcloud.githubusercontent.com%2Fassets%2

[go-nuts] [ANN] Go CMS with automatic JSON API for "thick client" front-ends. Feedback appreciated. (req. Go 1.8)

2017-01-18 Thread steve manuel
With more and more sites / apps built with the "thick-client" mindset (SPAs, React/React Native, etc) I found that I needed something like Wordpress for a great CMS, but for JSON clients, not HTML pages. I wanted something like Rails CLI for really fast dev experience, but with better concurr

[go-nuts] []struct{} vs. []*struct{}

2017-01-10 Thread Steve Roth
Suppose you are reading a list of structures, and you do not know in advance how many there will be. I'm trying to figure out when it's better to append them to a slice of structures, and when it's better to append pointers to them to a slice of pointers. It's easy enough to to the math on ho

[go-nuts] HTTP/2 Server Push - what is happening during 'Reading Push' ?

2016-12-30 Thread steve manuel
OMISE is all that is sent in a server push, and then data is received only once the subsequent request is made then I'm probably fine. Just looking for some clarity on how a server implementation like Go's handles this. I'm using the http.Pusher Push method in go1.8beta2 Thank you

[go-nuts] redundant type specifiers

2016-12-21 Thread Steve Roth
would be a lot more convenient without having to repeat all of the boilerplate. Is there a reason the language doesn't permit this? If there isn't a strong reason for these required redundancies, permit me to advocate removing them. As far as I can tell, doing so would not introduce

[go-nuts] Please participate in the 2016 Go User Survey and Company Questionnaire

2016-12-20 Thread Steve Francia
ang.org/survey2016 Thanks to everyone who has or will shared their experiences with the Go project. -Steve -- 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, se

[go-nuts] validating self-signed certs

2016-12-08 Thread Steve Roth
I have an application that needs to talk to numerous external devices, each of which has only a self-signed cert. We can't simply accept all self-signed certs with insecureSkipVerify; instead, as part of configuring the application for each new external device, we need to import its self-signe

[go-nuts] Re: Concurrency and order of execution

2016-11-15 Thread steve tang
There is not any guarentee in your goroutine, But you could try it as:https://play.golang.org/p/JDRAP4mxdc On Friday, November 11, 2016 at 2:08:39 PM UTC+8, mspaul...@gmail.com wrote: > > Hello, > > I've written a small program to demonstrate what I am seeing. If I use a > channel as a semap

Re: [go-nuts] How to conv [3]int to []int ?

2016-11-11 Thread steve tang
t; The code that is generated is exactly the same for both (you can check > this with go tool compile -S). > > On Thu, 2016-11-10 at 23:46 -0800, steve tang wrote: > > Thanks, But I want them hold same data addrs. So I just changed > > your code > > to follows:

Re: [go-nuts] How to conv [3]int to []int ?

2016-11-10 Thread steve tang
main > > import ( > "fmt" > ) > > func main() { > a := [3]int{1, 2, 3} > b := a[:] > fmt.Println(b) > } > > https://play.golang.org/p/OBY7g3azBE > > If so, there's no need for unsafe. If not, what are y

[go-nuts] How to conv [3]int to []int ?

2016-11-10 Thread steve tang
Hi theres, I used unsafe.Pointer to conv Type [3]int to Type []int, But it throws a runtime error, Could anybody tell me why? many thanks. The test code is as follows: package main import ( "fmt" "unsafe" ) func main() { a := [3]int{1, 2, 3} b := *(*[]int)(unsafe.Pointer(&a)) fmt.Print

[go-nuts] dotGo Paris 2016 Conference Report

2016-10-12 Thread Steve Mynott
There is a short blog at https://suffolkgophers.github.io/dotgo2016.html -- 4096R/EA75174B Steve Mynott -- 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

[go-nuts] Delve within Vim 8 or neovim?

2016-09-01 Thread Steve Mynott
Has any experimented with using delve within either vim 8 or neovim (both of which I believe have better async support for debuggers)? Delve works well under GUD mode in emacs with Evil vim emulation but it would be nice to use it directly. -- 4096R/EA75174B Steve Mynott -- You received this

[go-nuts] Bug: gomobile on iOS 10 crashes after app is suspended+resumed

2016-08-14 Thread Steve
"). This does not repro on the simulator, or iOS 9. Is this already being tracked, or should I file a bug? Thanks, Steve -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails fr

Re: [go-nuts] rsa.GenerateKey does not return on sepcial bits

2016-08-03 Thread steve wang
done. https://github.com/golang/go/issues/16596 On Thursday, August 4, 2016 at 12:01:55 PM UTC+8, bradfitz wrote: > > Please file a bug. > > > On Wed, Aug 3, 2016 at 8:20 PM, steve wang > wrote: > >> https://play.golang.org/p/gYYUDxj6Z5 >> >> Is this a

[go-nuts] rsa.GenerateKey does not return on sepcial bits

2016-08-03 Thread steve wang
https://play.golang.org/p/gYYUDxj6Z5 Is this an issue? -- 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