[go-nuts] Re: Bug report github.com/golang/glog

2017-11-18 Thread Tim Peoples
You're absolutely right -- and, if you'll notice, there's a TODO on the traceLocation.String() method to "clean this up". Granted, all it needs is a: if !t.isSet() { return "" } On Friday, November 17, 2017 at 5:27:49 PM UTC-8,

[go-nuts] Should net.Conn transform function retain the original data segmentation?

2017-11-18 Thread Dave Cheney
It is ok to pass data in smaller chunks, the io reader contract permits that. If you find programs that fail to handle this id suggest raising a bug. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop

Re: [go-nuts] Re: context.C and context.BG

2017-11-18 Thread 'Axel Wagner' via golang-nuts
Given that there should be exactly one call to context.Background per binary (in func main()), I don't understand the problem this is trying to solve. Similarly, context.TODO might be used, but should be used temporarily, as a migration tool, so it shouldn't matter that much. (Regarding

Re: [go-nuts] Re: context.C and context.BG

2017-11-18 Thread Alex Buchanan
So, context.Bg could be a value then? context.TODO could stay a function. On Saturday, November 18, 2017 at 6:01:07 AM UTC-8, Sameer Ajmani wrote: > > Context.TODO and Background have different String values; see > emptyCtx.String. > On Fri, Nov 17, 2017 at 9:25 PM me via golang-nuts < >

[go-nuts] Re: My trouble of local package referencing

2017-11-18 Thread jake6502
In a large, multi developer, project I worked on we used gb . It was a "large executable" style project, with may local sub packages that were intended to provide code organization, not to be reused by other projects. In addition to vendoring support, using gb

[go-nuts] Oracle

2017-11-18 Thread Tamás Gulácsi
gopkg.in/goracle.v2 installs with "go get" if a C compiler is ready. Supports calling stored procedures with using database/sql only, too. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

Re: [go-nuts] Oracle

2017-11-18 Thread Jan Mercl
On Sat, Nov 18, 2017 at 5:09 PM wrote: > First, let me thank the person who has written the Oracle (oci8) package for Go (preferred over the other Oracle package). > However, it seems difficult to install, on Windows at least. Google-ing for help did not give a solution. I am

[go-nuts] Oracle

2017-11-18 Thread sanjay
First, let me thank the person who has written the Oracle (oci8) package for Go (preferred over the other Oracle package). However, it seems difficult to install, on Windows at least. Google-ing for help did not give a solution. I am less than 7 hours old in Go, so perhaps after soldering

[go-nuts] Re: marshal and unmarshal

2017-11-18 Thread Yannic
Your error can be easily fixed by writing []string{"xushiwei", "hughlv", "pandaman", "guangsong"} instead of{"xushiwei", "hughlv", "pandaman", "guangsong"} https://play.golang.org/p/XCg0_R7_ex Also, please consider using https://play.golang.org to share code. It's much easier for everyone. On

[go-nuts] marshal and unmarshal

2017-11-18 Thread 2891132love
I write the program in the .txt.The purpose of this progaram is to marshal the structure,unmarshal it and output some result.But I can't output the marshal result and there are some errors exist .How to solve it??Thank you for reading. -- You received this message because you are

Re: [go-nuts] Re: context.C and context.BG

2017-11-18 Thread 'Anmol Sethi' via golang-nuts
Ah, thanks! > On Nov 18, 2017, at 9:00 AM, Sameer Ajmani wrote: > > Context.TODO and Background have different String values; see emptyCtx.String. > On Fri, Nov 17, 2017 at 9:25 PM me via golang-nuts > >

Re: [go-nuts] Re: context.C and context.BG

2017-11-18 Thread Sameer Ajmani
Context.TODO and Background have different String values; see emptyCtx.String. On Fri, Nov 17, 2017 at 9:25 PM me via golang-nuts < golang-nuts@googlegroups.com> wrote: > I've found a hint. Apparently, both context.TODO and context.Background > share a common implementation but they need distinct

Re: [go-nuts] Google Cloud Golang SDK authentication

2017-11-18 Thread Sameer Ajmani
+Ross and Jonathan On Sat, Nov 18, 2017 at 1:26 AM SALMAN AHMED wrote: > I am trying to automate the VM and Network resource creation using GCD > Client API. I do not want to use Google OAuth as the user has to generate > token every time. I used AWS SDK and it can

Re: [go-nuts] My trouble of local package referencing

2017-11-18 Thread 'Axel Wagner' via golang-nuts
On Sat, Nov 18, 2017 at 12:19 PM, Ally Dale wrote: > Hi, > > Here are two examples of "hello world" main packages: > /withoutlocal > /withlocal <- github.com/vipally/localpackage/local > > "withoutlocal" works well anywhere is, even out of GoPath. > "withlocal" works only

Re: [go-nuts] My trouble of local package referencing

2017-11-18 Thread Ally Dale
Hi, Here are two examples of "hello world" main packages: /withoutlocal /withlocal <- github.com/vipally/localpackage/local "withoutlocal" works well anywhere is, even out of GoPath. "withlocal" works only when " = /github.com/vipally/localpackage" How does go team think about this difference?