1. 02 Nov, 2011 1 commit
  2. 15 Sep, 2011 1 commit
    • Russ Cox's avatar
      build: add build comments to core packages · 2715956f
      Russ Cox authored
      The go/build package already recognizes
      system-specific file names like
      
              mycode_darwin.go
              mycode_darwin_386.go
              mycode_386.s
      
      However, it is also common to write files that
      apply to multiple architectures, so a recent CL added
      to go/build the ability to process comments
      listing a set of conditions for building.  For example:
      
              // +build darwin freebsd openbsd/386
      
      says that this file should be compiled only on
      OS X, FreeBSD, or 32-bit x86 OpenBSD systems.
      
      These conventions are not yet documented
      (hence this long CL description).
      
      This CL adds build comments to the multi-system
      files in the core library, a step toward making it
      possible to use go/build to build them.
      
      With this change go/build can handle crypto/rand,
      exec, net, path/filepath, os/user, and time.
      
      os and syscall need additional adjustments.
      
      R=golang-dev, r, gri, r, gustavo
      CC=golang-dev
      https://golang.org/cl/5011046
      2715956f
  3. 17 Aug, 2011 1 commit
    • Fazlul Shahriar's avatar
      net: Plan 9 support · 0f7bc92b
      Fazlul Shahriar authored
      All tests enabled by default passes except those in timeout_test.go.
      
      For TestLookupPort, add an entry for "bootps" in /lib/ndb/common
      (Plan 9 calls it "bootp"). I've sent out a patch to fix this.
      
      R=paulzhol, rsc, mikioh.mikioh
      CC=ality, golang-dev
      https://golang.org/cl/4779041
      0f7bc92b
  4. 16 Aug, 2011 1 commit
  5. 19 Jan, 2011 1 commit
  6. 12 Jan, 2011 1 commit
  7. 07 Dec, 2010 1 commit
  8. 05 Nov, 2010 1 commit
  9. 05 May, 2010 1 commit
  10. 27 Apr, 2010 1 commit
    • Russ Cox's avatar
      net: introduce net.Error interface · 47a05334
      Russ Cox authored
      Adds two more methods, Timeout and Temporary.
      Implemented by os.Errno too.  The intent is to make
      the checks for os.EAGAIN a little less clunky.
      It should also let us clean up a bug that Mike Solomon
      pointed out: if a network server gets an "out of file descriptors"
      error from Accept, the listener should not stop.
      It will be able to check this because that error would
      have Temporary() == true.
      
      Also clean up some underscore names.
      
      Fixes #442.
      
      R=r
      CC=golang-dev, msolo
      https://golang.org/cl/957045
      47a05334
  11. 30 Mar, 2010 1 commit
    • Russ Cox's avatar
      single argument panic · 00f9f0c0
      Russ Cox authored
      note that sortmain.go has been run through hg gofmt;
      only the formatting of the day initializers changed.
      i'm happy to revert that formatting if you'd prefer.
      
      stop on error in doc/progs/run
      
      R=r
      CC=golang-dev
      https://golang.org/cl/850041
      00f9f0c0
  12. 25 Feb, 2010 1 commit
  13. 15 Dec, 2009 1 commit
    • Robert Griesemer's avatar
      1) Change default gofmt default settings for · a3d1045f
      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
      
      3rd set of files.
      
      R=rsc
      CC=golang-dev
      https://golang.org/cl/180048
      a3d1045f
  14. 02 Dec, 2009 1 commit
  15. 17 Nov, 2009 1 commit
  16. 09 Nov, 2009 1 commit
  17. 06 Nov, 2009 1 commit
  18. 05 Nov, 2009 1 commit
  19. 03 Nov, 2009 1 commit
    • Russ Cox's avatar
      package net cleanup · c83b8386
      Russ Cox authored
      added ReadFrom/WriteTo for packet protocols like UDP.
      simplified the net.Conn interface.
      added new net.PacketConn interface for packet protocols.
      implemented proper UDP listener.
      
      cleaned up LocalAddr/RemoteAddr methods - cache in netFD.
      
      threw away various unused methods.
      
      an interface change:
      introduced net.Addr as a network address interface,
      to avoid conversion of UDP host:port to string and
      back for every ReadFrom/WriteTo sequence.
      
      another interface change:
      since signature of Listener.Accept was changing anyway,
      dropped the middle return value, because it is available
      as c.RemoteAddr().  (the Accept signature predates the
      existence of that method.)
      
      Dial and Listen still accept strings, but the proto-specific
      versions DialTCP, ListenUDP, etc. take net.Addr instead.
      
      because the generic Dial didn't change and because
      no one calls Accept directly (only indirectly via the http
      server), very little code will be affected by these interface
      changes.
      
      design comments welcome.
      
      R=p
      CC=go-dev, r
      http://go/go-review/1018017
      c83b8386
  20. 01 Nov, 2009 1 commit