[go-nuts] Re: Surprise About How Method Receivers Work

2017-12-17 Thread Jeff Goldberg
On Sunday, December 17, 2017 at 2:32:24 PM UTC-6, jlfo...@berkeley.edu wrote: > > Here's something that someone new to Go might run up against. I know I did. > > Me, too! The trivial program below, derived from "The Go Programming Language" > book, shows two methods that differ only in the way

Re: [go-nuts] How can I get unix timestamp(time.Now().Unix()) in linker(cmd/link)

2017-12-17 Thread Ally Dale
Thanks a lot, but I tried to pass timestamp by "-X=runtime.buildtimestamp=" to linker, it fails with the same message. I guess the timestamp makes the dependence packages always STALE, maybe I have to check logic of command "go list". 在 2017年12月16日星期六 UTC+8上午5:11:00,Ian Lance Taylor写道: >

Re: [go-nuts] Elphaba Chess

2017-12-17 Thread hughaguilar96
On Sunday, December 17, 2017 at 4:41:19 PM UTC-7, matthe...@gmail.com wrote: > > Here's a GPL Go chess library: https://github.com/dylhunn/dragontoothmg > > And a project without license: https://github.com/kjda/chess-on-go > > And a GPL Go chess server with HTML interface: > https://github.com/

[go-nuts] Re: Go Generate Vs Go Build!

2017-12-17 Thread Dave Cheney
https://blog.golang.org/generate -- 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.

Re: [go-nuts] Elphaba Chess

2017-12-17 Thread matthewjuran
Here's a GPL Go chess library: https://github.com/dylhunn/dragontoothmg And a project without license: https://github.com/kjda/chess-on-go And a GPL Go chess server with HTML interface: https://github.com/jonpchin/gochess Matt On Saturday, December 9, 2017 at 8:38:41 PM UTC-6, Hugh Aguilar wro

[go-nuts] Re: Go Generate Vs Go Build!

2017-12-17 Thread Ain
On Sunday, December 17, 2017 at 11:45:12 PM UTC+2, Compiler wrote: > > - https://en.wikipedia.org/wiki/Go_(programming_language) > - go build, which builds Go binaries using only information in the source > files themselves, no separate makefiles > - go test, for unit testing and microbenchmarks

[go-nuts] Re: Go Generate Vs Go Build!

2017-12-17 Thread Compiler
- https://en.wikipedia.org/wiki/Go_(programming_language) - go build, which builds Go binaries using only information in the source files themselves, no separate makefiles - go test, for unit testing and microbenchmarks - go fmt, for formatting code - go get, for retrieving and installing remote

[go-nuts] Go Generate Vs Go Build!

2017-12-17 Thread Compiler
Hello, Go Generate Vs Go Build!?! guest@Base:~/Gits/go-hello$ ls hello hello.go guest@Base:~/Gits/go-hello$ cat hello.go package main import "fmt" func main() { fmt.Println("Hello, World") } guest@Base:~/Gits/go-hello$ go build hello.go guest@Base:~/Gits/go-hello$ go generate hello.go

Re: [go-nuts] How to get nice html from godoc?

2017-12-17 Thread jake6502
Thanks Justin I will give it a try. (It certainly would be nice if "*godoc -html"* could be useful without having to modify the html.) On Saturday, December 16, 2017 at 6:41:07 PM UTC-5, Justin Israel wrote: > > > > On Sun, Dec 17, 2017 at 5:47 AM > wrote: > >> I suspected it was something lik

[go-nuts] acceptance test-driven development

2017-12-17 Thread Keith Brown
Are there any tools written in go that are similar to http://robotframework.org/ ? I like Robotframe work because its simple to write test but the downside is I either need python or jre installed to run the tests. This is a burdon. Ideally, it would be great if there was a single binary I can

[go-nuts] Re: beginner : best way to learn go

2017-12-17 Thread matthewjuran
Effective Go (https://golang.org/doc/effective_go.html) covers most of it for new Go programmers experienced in other languages, then Google Search + stackoverflow.com, github.com issues, and golang-nuts answers most everything else in my experience. I can't speak for beginner programmers but I

Re: [go-nuts] goimports flag parity with gofmt

2017-12-17 Thread Brad Fitzpatrick
I'd still rather not. But it'd be more than one change anyway. We're not just going to copy/paste the code from gofmt into goimports if it did happen. We'd want to move the simplify code to an x/* package (either https://godoc.org/golang.org/x/tools/go/ast/astutil or a subdirectory thereof) and th

Re: [go-nuts] goimports flag parity with gofmt

2017-12-17 Thread ramyanexus
Brad, Would you be open to consider a PR to add the "-s" flag support to goimports? On Monday, June 12, 2017 at 9:56:06 AM UTC-7, bradfitz wrote: > > Use the tool that does what you want. > > We don't have to put all functionality into all binaries. > > If vim-go makes assumptions that one helpe

[go-nuts] Re: pkg-config sqlite3, Go sqlite3 code stop working after Go upgrade

2017-12-17 Thread Tong Sun
True -- it turns out that the github.com/mattn/go-sqlite3 was not installed properly and everything works fine after refreshing that. Thanks Miki! On Saturday, December 16, 2017 at 11:43:33 PM UTC-5, Miki Tebeka wrote: > > For some reason pkg-config doesn't know about sqlite3. It can be that >