[go-nuts] Re: [ANN] peanut - write tagged structs to disk, in a variety of formats

2021-04-22 Thread 'Ingo Oeser' via golang-nuts
A truly fantastic package idea! Thanks a lot for sharing it. I just wish it would be cut a little bit differently. 1 module for the formats using only the stdlib 1 module each for sqlite and excel support. That woukd allow better control over dependencies and allow me to avoid the cgo

Re: [go-nuts] What is the the gccgo equivalent of -X importpath.name=value

2020-07-11 Thread 'Ingo Oeser' via golang-nuts
You could use the Go module support to tie the cli version to the version of your cli module. The module version can now be optained from the binary via https://godoc.org/runtime/debug#ReadBuildInfo and then in BuildInfo.Module.Version field. Since that is part of the official Go std-library,

[go-nuts] Consume RESTful API Endpoints within a golang application with webtoken

2020-03-15 Thread 'Ingo Oeser' via golang-nuts
I can only recommend https://pkg.go.dev/golang.org/x/oauth2/clientcredentials?tab=doc if you are implementing that. Configure clientcredentials.Config and use the http.Client returned by the Client method of that Config to do all your http calls. It manages all the token refreshing

[go-nuts] causal profiling in Go

2019-09-30 Thread 'Ingo Oeser' via golang-nuts
Hi everyone, does someone has experience with causal profiling in Go? (see http://www.sigops.org/sosp/sosp15/current/2015-Monterey/printable/090-curtsinger.pdf if you are not aware of that topic) Please note that I am aware of https://morsmachine.dk/causalprof but I want to hear a few more

[go-nuts] Any alternative to go-bindata that supports dynamic assets?

2019-06-01 Thread 'Ingo Oeser' via golang-nuts
https://tech.townsourced.com/post/embedding-static-files-in-go/ is a great article comparing multiple asset embedding solutions. You may come to different conclusion than the author depending on your own tradeoffs, but I found the comparison table very useful for making those decisions

[go-nuts] Q16.16 fixed point numbers in go

2018-10-22 Thread 'Ingo Oeser' via golang-nuts
https://godoc.org/golang.org/x/image/math/fixed might provide some hints how to work with this kind of type. The idea is to use a special type and provide all operations you need. https://godoc.org/math/big#Rat might be helpful to create first tests of the basic math operations with maximum

[go-nuts] Re: Announcing pytogo. a crude but surprisingly effective Python to Go translator

2018-10-03 Thread 'Ingo Oeser' via golang-nuts
Hi Michael, while I understand that you are having fun with the pytogo translator, please note that a base36 encoder is already part of the Go stdlib Namely https://golang.org/pkg/math/big/#Int.Text supports a base of 36 for big integers and https://golang.org/pkg/strconv/#FormatInt supports

[go-nuts] Looking for a way to monitor all active Go channels

2018-08-29 Thread 'Ingo Oeser' via golang-nuts
I would suggest opening an issue for that, if it isn't. A runtime provided profile similar to the contention profile might be very useful here. But that needs careful design. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

[go-nuts] Re: AWS S3 Image Upload with Golang

2018-08-15 Thread 'Ingo Oeser' via golang-nuts
You seem to ignore the error from out.Close() What is out.Close reporting after the io.Copy? -- 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

[go-nuts] [ANN] Go Performance Playground

2017-04-08 Thread 'Ingo Oeser' via golang-nuts
I love the idea and it is a really great service to the community. What I am asking myself: Why couldn't I use the standard Go benchmark interface defined in https://godoc.org/testing ? This would allow me to quickly share any benchmark I did write already. Where can I see what machine and

[go-nuts] Re: [ANN] atomic operations as methods on types

2017-03-22 Thread 'Ingo Oeser' via golang-nuts
Thx for the valuable feedback! I just added a bugs section to the package doc so it's transparent, that the same limitations (and workarounds) apply as in the sync/atomic package. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe

[go-nuts] [ANN] atomic operations as methods on types

2017-03-21 Thread 'Ingo Oeser' via golang-nuts
Hi all, I wrote a small package which implements atomic operations on types. This is more comfortable to use and enabled building an atomic boolean type (which has been the motivation) here. Documentation at https://godoc.org/github.com/nightlyone/atomic Source code at:

[go-nuts] Need suggestion for bad code of reflection (using FieldByNameFunc and FieldByName inside it)

2017-03-16 Thread 'Ingo Oeser' via golang-nuts
What checks are you doing on struct field names and tags? That will be crucial to answering your question. -- 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

[go-nuts] Donating to Go/related causes

2016-12-25 Thread 'Ingo Oeser' via golang-nuts
Sponsor a meetup nearby. Or help them with a venue or catering. Speak on a local conference or meetup about how Go has been key to your success to encourage others to pursue their dreams. Make a workshop for newbies in your area. Happy donating. -- You received this message because you are

Re: [go-nuts] Single instance of program

2016-10-04 Thread 'Ingo Oeser' via golang-nuts
Are you looking for something like https://godoc.org/github.com/nightlyone/lockfile ? -- 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] Wordbreak and word extraction in Go?

2016-09-29 Thread 'Ingo Oeser' via golang-nuts
e know if you have any other questions. > > Best regards, > > Marcel > > > On Wed, Sep 21, 2016 at 5:41 AM, Nigel Tao <nige...@golang.org > > wrote: > >> On Wed, Sep 21, 2016 at 7:34 AM, 'Ingo Oeser' via golang-nuts >> <golan...@googlegroups.com &

Re: [go-nuts] Wordbreak and word extraction in Go?

2016-09-20 Thread 'Ingo Oeser' via golang-nuts
Thanks for the suggestion, but I am looking for an implementation of http://unicode.org/reports/tr29/ -- 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

[go-nuts] Wordbreak and word extraction in Go?

2016-09-20 Thread 'Ingo Oeser' via golang-nuts
Hi all, I am pretty sure I am overlooking something in the repository https://godoc.org/golang.org/x/text but I cannot find something to split text into words according to the next Unicode word splitting algorithm. Has anyone examples or can point me to the right direction? Can anyone confirm

[go-nuts] Is SizedReaderAt coming back in 1.8?

2016-09-09 Thread 'Ingo Oeser' via golang-nuts
The missing inclusion stems from a misunderstanding of the intended api. The Size method should return the upper bound for the offset passed to ReadAt known ahead of time. If the upper bound cannot be detected, the SizedReaderAt will simply fail creation. When the Size changes, ReadAt will

[go-nuts] Looking for info on how Go package developers handle breaking changes with other packages

2016-08-11 Thread 'Ingo Oeser' via golang-nuts
Please note that there is no concept central repository of Go code. Those questions in the survey are very confusing for a Go developer. Maybe you could exclude those questions for Go developers. Otherwise you would need to ignore the results for Go developers here in your later analysis. --

Re: [go-nuts] http.Client returning "http2: no cached connection was available"

2016-08-02 Thread 'Ingo Oeser' via golang-nuts
Could you document your workaround here? It might be needed by others for the next 6 months because the bug has been classified as Go 1.8 work. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving