[go-nuts] Re: Why is there no standard `uuid` package?

2018-02-08 Thread
It's very reasonable, and as an actual decision, we fork that lib. I understood that a stability of library is not so problem. However, as Henry says, default UUID specification is defined on RFC. Implementing it is useful, isn't it? 2018年2月9日金曜日 12時28分16秒 UTC+9 Dave Cheney: > > Your argument th

[go-nuts] Re: Why is there no standard `uuid` package?

2018-02-08 Thread
Thanks you for the opinion. My colleagues are using satori/go.uuid, with web framework, "goa". API breaking change broke that package and our team had trouble for versioning. https://github.com/satori/go.uuid/issues/66 I know it is not the problem of the code of uuid generation itself, but my fri

[go-nuts] Re: Why is there no standard `uuid` package?

2018-02-08 Thread
I agree UUID is vague but supplying "default" UUID generator on the standard package is significant. If you'd like to use advanced ID generator, like snowflake, you can use that package. The problem is there is no stable and de facto standard package of it. 2018年2月9日金曜日 3時17分38秒 UTC+9 Tamás Gulá

[go-nuts] Why is there no standard `uuid` package?

2018-02-07 Thread
Recently satori/go.uuid took a breaking change of API, and some of frameworks which depend on the package. And google/uuid is unstable. Why Go doesn't have an official uuid package? Is there any load map to develop google/uuid and merge it to Go itself? -- You received this message because you

[go-nuts] Why go does't have NullInt type on database/sql?

2017-10-11 Thread
There are NullInt64 and NullFloat64, but not about NullInt, NullFloat. (or NullInt32 etc...) After scanning from rds, my team always convert them to int, but it seems so silly. What is the reason? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.

[go-nuts] Re: How do you debug Go itself on VM env or Docker container?

2017-08-18 Thread
Do you know any setting file like Vagrantfile or Dockerfile, which is appropriate for this case? 2017年8月18日金曜日 17時50分30秒 UTC+9 Tamás Gulácsi: > > Fix your VM? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and st

[go-nuts] How do you debug Go itself on VM env or Docker container?

2017-08-18 Thread
I'm trying to debug and run `./all.bash` with VM or docker, but they don't work for several reasons. On VM, I added box of CentOS and Ubuntu, though, they cancels ./all.bash at `hardlink` testing. And on docker, it also fails cuz of the permission of host directory, which includes `src`, so the

[go-nuts] Re: fmt: Why Golang doesn't have fmt.Printlnf?

2017-02-07 Thread
yes, I know but other languages support it as default, isn't it? 2017年2月8日水曜日 12時31分00秒 UTC+9 dja...@gmail.com: > > > > On Wednesday, February 8, 2017 at 3:58:55 AM UTC+2, 高橋誠二 wrote: >> >> fmt package have no *lnf method, but in other langs, >> sometimes it i

[go-nuts] fmt: Why Golang doesn't have fmt.Printlnf?

2017-02-07 Thread
fmt package have no *lnf method, but in other langs, sometimes it implements Printlnf. Is there any reason? -- 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

[go-nuts] Can't parse Interface-typed variable, even after substituting a specific type.

2017-02-07 Thread
https://play.golang.org/p/KEGDmlLEZZ like this, can't use var model ModelObject as FooModel struct. I'd like to use model as FooModel variable, after inserting &FooModel{Id: 1} to model. Why this happen? -- You received this message because you are subscribed to the Google Groups "golang-nuts"

[go-nuts] Re: Cannot decode encrypted private key

2016-10-04 Thread
sorry, referenced line was wrong. https://github.com/golang/crypto/blob/master/ssh/keys.go#L772 2016年10月5日水曜日 3時07分45秒 UTC+9 高橋誠二: > > https://github.com/golang/crypto/blob/master/ssh/keys.go#L751 > > This line blocks to parse private key, that encrypted and contains the > en

[go-nuts] Cannot decode encrypted private key

2016-10-04 Thread
https://github.com/golang/crypto/blob/master/ssh/keys.go#L751 This line blocks to parse private key, that encrypted and contains the encryption header. But is this necessary? So much keys maybe encrypted and this disturbs to authenticate client for ssh connection in many cases. It should alert

[go-nuts] slice: copy to zero length slice

2016-10-02 Thread
As official doc explains, copy to zero length slice results to be empty. package main import "fmt" func main() { src := []int{1, 2, 3} dst := []int{} fmt.Println(len(dst)) copy(dst, src) fmt.Println(src) fmt.Println(dst) // [1 2 3] // [] src2 := []int{1, 2, 3