1. 24 Feb, 2017 2 commits
    • Joe Tsai's avatar
      cmd/doc: truncate long lists of arguments · a1ea9121
      Joe Tsai authored
      Some field-lists (especially in generated code) can be excessively long.
      In the one-line printout, it does not make sense to print all elements
      of the list if line-wrapping causes the "one-line" to become multi-line.
      
      // Before:
      var LongLine = newLongLine("someArgument1", "someArgument2", "someArgument3", "someArgument4", "someArgument5", "someArgument6", "someArgument7", "someArgument8")
      
      // After:
      var LongLine = newLongLine("someArgument1", "someArgument2", "someArgument3", "someArgument4", ...)
      
      Change-Id: I4bbbe2dbd1d7be9f02d63431d213088c3dee332c
      Reviewed-on: https://go-review.googlesource.com/36031
      Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      Reviewed-by: default avatarRob Pike <r@golang.org>
      a1ea9121
    • Joe Tsai's avatar
      crypto/tls: use io.ReadFull in conn_test.go · ea5529de
      Joe Tsai authored
      An io.Reader does not guarantee that it will read in the entire buffer.
      To ensure that property, io.ReadFull should be used instead.
      
      Change-Id: I0b863135ab9abc40e813f9dac07bfb2a76199950
      Reviewed-on: https://go-review.googlesource.com/37403Reviewed-by: default avatarMikio Hara <mikioh.mikioh@gmail.com>
      Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
      TryBot-Result: Gobot Gobot <gobot@golang.org>
      ea5529de
  2. 23 Feb, 2017 8 commits
  3. 22 Feb, 2017 15 commits
  4. 21 Feb, 2017 15 commits