An error occurred fetching the project authors.
- 23 Dec, 2011 1 commit
-
-
David Symonds authored
This works in the expected way: flag.Duration returns a *time.Duration, and uses time.ParseDuration for parsing the input. R=golang-dev, r CC=golang-dev https://golang.org/cl/5489113
-
- 05 Dec, 2011 1 commit
-
-
Russ Cox authored
All but 3 cases (in gcimporter.go and hixie.go) are automatic conversions using gofix. No attempt is made to use the new Append functions even though there are definitely opportunities. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5447069
-
- 02 Nov, 2011 1 commit
-
-
Russ Cox authored
R=golang-dev, iant CC=golang-dev https://golang.org/cl/5322051
-
- 15 Sep, 2011 1 commit
-
-
Russ Cox authored
This makes it possible to use a FlagSet as a field in a larger struct. R=golang-dev, r CC=golang-dev https://golang.org/cl/5036041
-
- 31 Aug, 2011 1 commit
-
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/4973050
-
- 10 Jul, 2011 1 commit
-
-
Rob Pike authored
- suppress the print that -help is not defined. - return a special error code if -help is set - do not change behavior if an explict "help" flag is defined. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4641099
-
- 10 Jun, 2011 1 commit
-
-
Rob Pike authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4602054
-
- 22 May, 2011 1 commit
-
-
Andrew Gerrand authored
R=r CC=golang-dev https://golang.org/cl/4543064
-
- 21 May, 2011 1 commit
-
-
Rob Pike authored
A FlagSet is an independent set of flags that may be used, for example, to provide flag processing for subcommands in a CLI. The standard, os.Args-derived set of flags is a global but non-exported FlagSet and the standard functions are wrappers for methods of that FlagSet. Allow the programmer to control whether the program exits if there is a parse error. For the default set, the behavior remains to exit on error. The handling of Usage is odd due to backward compatibility. R=golang-dev, bradfitz, r, bradfitz CC=golang-dev https://golang.org/cl/4517092
-
- 19 May, 2011 1 commit
-
-
David Symonds authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/4539067
-
- 19 Apr, 2011 1 commit
-
-
Nigel Tao authored
R=rsc CC=golang-dev https://golang.org/cl/4442064
-
- 25 Mar, 2011 1 commit
-
-
Rob Pike authored
Fixes #1615. This time for sure. R=rsc, gri CC=golang-dev https://golang.org/cl/4275079
-
- 20 Mar, 2011 1 commit
-
-
Fazlul Shahriar authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/4279065
-
- 17 Mar, 2011 1 commit
-
-
Rob Pike authored
Fixes #1615. R=dsymonds CC=golang-dev https://golang.org/cl/4277058
-
- 10 Mar, 2011 1 commit
-
-
Rob Pike authored
Fixes #1601. R=rsc CC=golang-dev https://golang.org/cl/4249070
-
- 08 Mar, 2011 2 commits
-
-
Robert Hencke authored
"standard output" should have been "standard error". Sorry about that.. R=adg CC=golang-dev https://golang.org/cl/4240088
-
Robert Hencke authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/4254061
-
- 11 Feb, 2011 1 commit
-
-
Luuk van Dijk authored
R=r CC=golang-dev https://golang.org/cl/4182043
-
- 20 Jan, 2011 1 commit
-
-
Russ Cox authored
also: cmplx -> complex float64(1.0) -> 1.0 float64(1) -> 1.0 R=gri, r, gri1, r2 CC=golang-dev https://golang.org/cl/3991043
-
- 07 Dec, 2010 1 commit
-
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/3071041
-
- 06 Dec, 2010 1 commit
-
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/3418043
-
- 15 Apr, 2010 1 commit
-
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/872045
-
- 06 Apr, 2010 1 commit
-
-
Rob Pike authored
R=rsc CC=golang-dev https://golang.org/cl/864044
-
- 30 Mar, 2010 2 commits
-
-
Russ Cox authored
R=r CC=golang-dev https://golang.org/cl/833044
-
Rob Pike authored
the set() method and add() functions. But we rename add() to Var() for consistency. Also rename FlagValue to Value for simplicity. Also, delete the check for multiple settings for a flag. This makes it possible to define a flag that collects values, such as into a slice of strings. type flagVar []string func (f *flagVar) String() string { return fmt.Sprint(v) } func (f *flagVar) Set(value string) bool { if v == nil { v = make(flagVar, 1) } else { nv := make(flagVar, len(v)+1) copy(nv, v) v = nv } v[len(v)-1] = value return true } var v flagVar func main() { flag.Var(&v, "testV", "multiple values build []string") flag.Parse() fmt.Printf("v = %v\n", v) } R=rsc CC=golang-dev https://golang.org/cl/842041
-
- 25 Mar, 2010 1 commit
-
-
Rob Pike authored
Fixes #639 R=rsc CC=golang-dev https://golang.org/cl/755041
-
- 15 Dec, 2009 1 commit
-
-
Robert Griesemer authored
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 2nd set of files. R=rsc CC=golang-dev https://golang.org/cl/179067
-
- 20 Nov, 2009 1 commit
-
-
Russ Cox authored
R=r, gri CC=golang-dev https://golang.org/cl/156115
-
- 13 Nov, 2009 1 commit
-
-
Rob Pike authored
-flag true does not work although -flag=true does. Fixes #139. R=iant CC=golang-dev https://golang.org/cl/154118
-
- 10 Nov, 2009 1 commit
-
-
Robert Griesemer authored
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1026036
-
- 09 Nov, 2009 1 commit
-
-
Robert Griesemer authored
R=rsc, r http://go/go-review/1025029
-
- 07 Nov, 2009 1 commit
-
-
Vish Subramanian authored
R=r, rsc http://go/go-review/1026011
-
- 06 Nov, 2009 1 commit
-
-
Robert Griesemer authored
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
-
- 05 Nov, 2009 1 commit
-
-
Robert Griesemer authored
(replacement for CLs 1017039, 1017041, 1017040, 1018054) R=r http://go/go-review/1018060
-
- 08 Oct, 2009 1 commit
-
-
Russ Cox authored
R=gri OCL=35485 CL=35488
-
- 06 Oct, 2009 1 commit
-
-
Russ Cox authored
R=gri DELTA=456 (6 added, 3 deleted, 447 changed) OCL=35398 CL=35406
-
- 15 Sep, 2009 1 commit
-
-
Russ Cox authored
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
-
- 12 Aug, 2009 2 commits
-
-
Russ Cox authored
R=r DELTA=163 (1 added, 149 deleted, 13 changed) OCL=33106 CL=33111
-
Russ Cox authored
whole-package compilation. new Makefiles, tests now in separate package bytes flag fmt io math once os reflect strconv sync time utf8 delete import "xxx" in package xxx. inside package xxx, xxx is not declared anymore so s/xxx.//g delete file and package level forward declarations. note the new internal_test.go and sync and strconv to provide public access to internals during testing. the installed version of the package omits that file and thus does not open the internals to all clients. R=r OCL=33065 CL=33097
-
- 17 Jul, 2009 1 commit
-
-
Rob Pike authored
R=rsc DELTA=11 (0 added, 0 deleted, 11 changed) OCL=31760 CL=31760
-