1. 03 Feb, 2012 7 commits
    • Gustavo Niemeyer's avatar
      os: turn FileStat.Sys into a method on FileInfo · 20f4385a
      Gustavo Niemeyer authored
      This reduces the overhead necessary to work with OS-specific
      file details, hides the implementation of FileStat, and
      preserves the implementation-specific nature of Sys.
      
      Expressions such as:
      
        stat.(*os.FileInfo).Sys.(*syscall.Stat_t).Uid
        fi1.(*os.FileStat).SameFile(fi2.(*os.FileStat))
      
      Are now spelled as::
      
        stat.Sys().(*syscall.Stat_t).Uid
        os.SameFile(fi1, fi2)
      
      R=cw, bradfitz, rsc
      CC=golang-dev
      https://golang.org/cl/5448079
      20f4385a
    • Gary Burd's avatar
      go/doc: Fix URL linking in ToHTML. · b9474de2
      Gary Burd authored
      Fixes issue: 2832
      
      R=rsc, gri
      CC=golang-dev
      https://golang.org/cl/5616060
      b9474de2
    • David Symonds's avatar
      encoding/base32: add DecodeString and EncodeToString helper methods. · cce3de79
      David Symonds authored
      This makes encoding/base32 be consistent with encoding/base64.
      
      R=golang-dev, rsc
      CC=golang-dev
      https://golang.org/cl/5615053
      cce3de79
    • Robert Griesemer's avatar
      go/scanner: idiomatic receiver names · 77f11f3e
      Robert Griesemer authored
      R=rsc
      CC=golang-dev
      https://golang.org/cl/5606057
      77f11f3e
    • Russ Cox's avatar
      syscall: fix // +build comments in types_*.go · 8fe75a28
      Russ Cox authored
      I fixed types_linux.go yesterday but missed the others.
      
      R=golang-dev, bradfitz
      CC=golang-dev
      https://golang.org/cl/5620054
      8fe75a28
    • Russ Cox's avatar
      cmd/dist: new command · 3dd1e5be
      Russ Cox authored
      dist is short for distribution.  This is the new Go distribution tool.
      
      The plan is to replace the Makefiles with what amounts to
      'go tool dist bootstrap', although it cannot be invoked like
      that since it is in charge of getting us to the point where we
      can build the go command.
      
      It will also add additional commands to replace bash scripts
      like test/run (go tool dist testrun), eventually eliminating our
      dependence on not just bash but all the Unix tools and all
      of cygwin.
      
      This is strong enough to build (cc *.c) and run (a.out bootstrap)
      to build not just the C libraries and tools but also the basic
      Go packages up to the bootstrap form of the go command
      (go_bootstrap).  I've run it successfully on both Linux and Windows.
      This means that once we've switched to this tool in the build,
      we can delete the buildscripts.
      
      This tool is not nearly as nice as the go tool.  There are many
      special cases that turn into simple if statements or tables in
      the code.  Please forgive that.  C does not enjoy the benefits
      that we designed into Go.
      
      I was planning to wait to do this until after Go 1, but the
      Windows builders are both broken due to a bug in either
      make or bash or both involving the parsing of quoted command
      arguments.  Make thinks it is invoking
      
              quietgcc -fno-common -I"c:/go/include" -ggdb -O2 -c foo.c
      
      but bash (quietgcc is a bash script) thinks it is being invoked as
      
              quietgcc -fno-common '-Ic:/go/include -ggdb' -O2 -c foo.c
      
      which obviously does not have the desired effect.  Rather than fight
      these clumsy ports, I accelerated the schedule for the new tool.
      We should be completely off cygwin (using just the mingw gcc port,
      which is much more standalone) before Go 1.
      
      It is big for a single CL, and for that I apologize.  I can cut it into
      separate CLs along file boundaries if people would prefer that.
      
      R=golang-dev, adg, gri, bradfitz, alex.brainman, dsymonds, iant, ality, hcwfrichter
      CC=golang-dev
      https://golang.org/cl/5620045
      3dd1e5be
    • David Symonds's avatar
      encoding/json: call (*T).MarshalJSON for addressable T values. · bf89d58e
      David Symonds authored
      Fixes #2170.
      
      R=golang-dev, cw, adg
      CC=golang-dev
      https://golang.org/cl/5618045
      bf89d58e
  2. 02 Feb, 2012 18 commits
  3. 01 Feb, 2012 15 commits