[go-nuts] Named or unnamed struct initialisation? What is best practice?

2017-07-04 Thread Tamás Gulácsi
Named. -- 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.

[go-nuts] Named or unnamed struct initialisation? What is best practice?

2017-07-04 Thread snmed
Hi gophers I've a litte question about best practice for struct initialisation. For example one can initialise structs like: type A struct { name string firstName string } a1 := A{"Mueller", "Max"} a2 := A{name: "Mueller", firstName: "Max"} The first one is concise and intuitive,

Re: [go-nuts] close plugin

2017-07-04 Thread Ian Lance Taylor
On Tue, Jul 4, 2017 at 11:24 AM, wrote: > > I'm using golang 1.8.1 on linux, when i try to write a plugin system with > lib "plugin", i find there is no "close" function to close plugin. > If a plugin can be closed, maybe we can make the plugin hot update to a new >

[go-nuts] golang/dep - we need more help-wanted issues

2017-07-04 Thread jovanovic . milutin
golang/dep project mentions this list for general questions. If any of the dep tool maintainers are watching, I think we need few more issues tagges with help-wanted tags. Most open ones are already claimed. Miki. -- You received this message because you are subscribed to the Google Groups

Re: [go-nuts] Go Playground Syntax Highlighting

2017-07-04 Thread lfaoro
Use a font like FiraCode and enable 'ligatures' in your editor so := and = will be noticeably distinct. On Sunday, October 28, 2012 at 10:58:18 AM UTC+1, Job van der Zwan wrote: > > On Sunday, 28 October 2012 08:28:43 UTC+1, si guy wrote: >> >> The most relavent highlight for me is making all :=

Re: [go-nuts] Re: [ANN] go-dedup/simhash, enhanced Go simhash package

2017-07-04 Thread Tong Sun
Good to know. One question, I didn't find any help/text on how to use it -- why for so many years, there is no usage help? My guess was that it is mainly for internal use, not for the general public, but maybe I was wrong. On Tue, Jul 4, 2017 at 4:47 PM, Damian Gryski wrote:

[go-nuts] Re: [ANN] go-dedup/simhash, enhanced Go simhash package

2017-07-04 Thread Damian Gryski
On Monday, July 3, 2017 at 6:33:05 PM UTC+2, Tong Sun wrote: > > FYI, I've just enhanced the Go simhash package from mfonda/simhash > to go-dedup > /simhash > . > > The reasons &

[go-nuts] Re: Calling OS X dylib from Go

2017-07-04 Thread Nathan Kerr
The default gc toolchain is fine. Use appropriate LDFLAGS or pkg-config directive in the import "C" comments. Then use the library like you would use any other library. See the libpng example in the cgo documentation . On Tuesday,

[go-nuts] Calling OS X dylib from Go

2017-07-04 Thread Tejas Manohar
Does anyone have examples or tips on calling methods from OS X dylib's (dynamic, shared library) from Go? I have the C header file, too, but no source code. Is it possible to call methods from the header file directly in Go (alike a C program that `#include libproc.h`) or should I create a C

[go-nuts] Re: Who wants to use Go to process your camera's raw files?

2017-07-04 Thread pierbover11
Any updates on this? I'm looking at processing RAW images in a server with Go. On Tuesday, July 26, 2016 at 9:36:31 PM UTC-5, Jonathan Pittman wrote: > > Well me too! I am looking to see what level of interest there is in the > Go community to see this happen. I am also looking for people who

[go-nuts] Re: go language : no install location

2017-07-04 Thread ciptohadi79
i faced similar problem which said "go install: no install location for /home/cipto/softdev/go/src/mymath: hidden by /home/cipto/prog-install/go/src/mymath". The context is my go qorkspace is "/home/cipto/softdev/go" Finally I figure out that mymath directory has been duplicated at

[go-nuts] close plugin

2017-07-04 Thread letian0805
I'm using golang 1.8.1 on linux, when i try to write a plugin system with lib "plugin", i find there is no "close" function to close plugin. If a plugin can be closed, maybe we can make the plugin hot update to a new version, just like beam files update in erlang. -- You received this message

[go-nuts] Re: [ANN] astisub: Manipulate subtitles in GO (.srt, .stl, .ttml, .webvtt, etc.)

2017-07-04 Thread Tong Sun
That's great! On Tuesday, July 4, 2017 at 9:03:52 AM UTC-4, Asticode wrote: > > Hey guys, > > > I'm happy to announce go-astisub, a Golang library to manipulate subtitles > : https://github.com/asticode/go-astisub... > -- You received this message because you are subscribed to the Google

Re: [go-nuts] Maximum number of requests per HTTP connection?

2017-07-04 Thread Kevin Conway
Unfortunately, neither the http. Client nor the *http. Request expose a reference to the underlying connection such that you could implement that behaviour. At least, that's what I've found when trying to do this as well. One possible strategy we've considered is implementing a wrapper around the

[go-nuts] [ANN] astisub: Manipulate subtitles in GO (.srt, .stl, .ttml, .webvtt, etc.)

2017-07-04 Thread Asticode
Hey guys, I'm happy to announce go-astisub, a Golang library to manipulate subtitles : https://github.com/asticode/go-astisub. It allows you to manipulate .srt, .stl, .ttml and .webvtt files for now. Teletext, ssa/ass and .smi will come shortly. Available operations are parsing, writing,

[go-nuts] more self-hosted tools: shorturl (url shortener) and pastebin (pastebin service with cli)

2017-07-04 Thread prologic
Hey all, Please enjoy some simple self-hosted tools: shorturl => https://github.com/prologic/shorturl Use this to create and share short urls of those long and ugly urls. pastebin: https://github.com/prologic/pastebin Use this to create temporary/ephemeral pastes with a easy to use cli (can