diff --git a/Source/archive/tar/tar.md b/Source/archive/tar/tar.md index e8ad56d..a6ef19c 100644 --- a/Source/archive/tar/tar.md +++ b/Source/archive/tar/tar.md @@ -94,7 +94,7 @@ Example: - [Package (Minimal)](#example_minimal) ### Package files - [common.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/archive/tar/common.go) [format.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/archive/tar/format.go) [reader.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/archive/tar/reader.go) [stat_actime1.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/archive/tar/stat_actime1.go) [stat_unix.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/archive/tar/stat_unix.go) [strconv.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/archive/tar/strconv.go) [writer.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/archive/tar/writer.go) + [common.go](//github.com/golang/go/blob/release-branch.go1.10/src/archive/tar/common.go) [format.go](//github.com/golang/go/blob/release-branch.go1.10/src/archive/tar/format.go) [reader.go](//github.com/golang/go/blob/release-branch.go1.10/src/archive/tar/reader.go) [stat_actime1.go](//github.com/golang/go/blob/release-branch.go1.10/src/archive/tar/stat_actime1.go) [stat_unix.go](//github.com/golang/go/blob/release-branch.go1.10/src/archive/tar/stat_unix.go) [strconv.go](//github.com/golang/go/blob/release-branch.go1.10/src/archive/tar/strconv.go) [writer.go](//github.com/golang/go/blob/release-branch.go1.10/src/archive/tar/writer.go)

Constants

@@ -147,7 +147,7 @@ Type flags for Header.Typeflag. ) -

type Format +

type Format

type Format int
@@ -237,12 +237,12 @@ The Writer currently provides no support for sparse files. Constants to identify various tar formats. -

func (Format) String +

func (Format) String

func (f Format) String() string
-
type Header struct {
     Typeflag byte // Type of header entry (should be TypeReg for most files)
@@ -314,7 +314,7 @@ it in some ways, and then pass it back to Writer.WriteHeader should do so by
 creating a new Header and copying the fields that they are interested in
 preserving.
 
-

func FileInfoHeader +

func FileInfoHeader

func FileInfoHeader(fi os.FileInfo, link string) (*Header, error)
@@ -326,13 +326,13 @@ Since os.FileInfo's Name method only returns the base name of the file it describes, it may be necessary to modify Header.Name to provide the full path name of the file. -

func (*Header) FileInfo +

func (*Header) FileInfo

func (h *Header) FileInfo() os.FileInfo
FileInfo returns an os.FileInfo for the Header. -

type Reader +

type Reader

type Reader struct {
     // contains filtered or unexported fields
@@ -342,13 +342,13 @@ Reader provides sequential access to the contents of a tar archive. Reader.Next
 advances to the next file in the archive (including the first), and then Reader
 can be treated as an io.Reader to access the file's data.
 
-

func NewReader +

func NewReader

func NewReader(r io.Reader) *Reader
NewReader creates a new Reader reading from r. -

func (*Reader) Next +

func (*Reader) Next

func (tr *Reader) Next() (*Header, error)
@@ -358,7 +358,7 @@ file is automatically discarded. io.EOF is returned at the end of the input. -

func (*Reader) Read +

func (*Reader) Read

func (tr *Reader) Read(b []byte) (int, error)
@@ -373,7 +373,7 @@ Calling Read on special types like TypeLink, TypeSymlink, TypeChar, TypeBlock, TypeDir, and TypeFifo returns (0, io.EOF) regardless of what the Header.Size claims. -

type Writer +

type Writer

type Writer struct {
     // contains filtered or unexported fields
@@ -383,13 +383,13 @@ Writer provides sequential writing of a tar archive. Write.WriteHeader begins a
 new file with the provided Header, and then Writer can be treated as an
 io.Writer to supply that file's data.
 
-

func NewWriter +

func NewWriter

func NewWriter(w io.Writer) *Writer
NewWriter creates a new Writer writing to w. -

func (*Writer) Close +

func (*Writer) Close

func (tw *Writer) Close() error
@@ -397,7 +397,7 @@ Close closes the tar archive by flushing the padding, and writing the footer. If the current file (from a prior call to WriteHeader) is not fully written, then this returns an error. -

func (*Writer) Flush +

func (*Writer) Flush

func (tw *Writer) Flush() error
@@ -407,7 +407,7 @@ be fully written before Flush can be called. This is unnecessary as the next call to WriteHeader or Close will implicitly flush out the file's padding. -

func (*Writer) Write +

func (*Writer) Write

func (tw *Writer) Write(b []byte) (int, error)
@@ -418,7 +418,7 @@ Calling Write on special types like TypeLink, TypeSymlink, TypeChar, TypeBlock, TypeDir, and TypeFifo returns (0, ErrWriteTooLong) regardless of what the Header.Size claims. -

func (*Writer) WriteHeader +

func (*Writer) WriteHeader

func (tw *Writer) WriteHeader(hdr *Header) error
diff --git a/Source/archive/zip/zip.md b/Source/archive/zip/zip.md index a29c459..bf2eb64 100644 --- a/Source/archive/zip/zip.md +++ b/Source/archive/zip/zip.md @@ -59,7 +59,7 @@ fields will be 0xffffffff and the 64 bit fields must be used instead. - [Writer.RegisterCompressor](#exampleWriter_RegisterCompressor) ### Package files - [reader.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/archive/zip/reader.go) [register.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/archive/zip/register.go) [struct.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/archive/zip/struct.go) [writer.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/archive/zip/writer.go) + [reader.go](//github.com/golang/go/blob/release-branch.go1.10/src/archive/zip/reader.go) [register.go](//github.com/golang/go/blob/release-branch.go1.10/src/archive/zip/register.go) [struct.go](//github.com/golang/go/blob/release-branch.go1.10/src/archive/zip/struct.go) [writer.go](//github.com/golang/go/blob/release-branch.go1.10/src/archive/zip/writer.go)

Constants

@@ -79,21 +79,21 @@ Compression methods. )
-

func RegisterCompressor +

func RegisterCompressor

func RegisterCompressor(method uint16, comp Compressor)
RegisterCompressor registers custom compressors for a specified method ID. The common methods Store and Deflate are built in. -

func RegisterDecompressor +

func RegisterDecompressor

func RegisterDecompressor(method uint16, dcomp Decompressor)
RegisterDecompressor allows custom decompressors for a specified method ID. The common methods Store and Deflate are built in. -

type Compressor +

type Compressor

type Compressor func(w io.Writer) (io.WriteCloser, error)
@@ -102,7 +102,7 @@ Close method must be used to flush pending data to w. The Compressor itself must be safe to invoke from multiple goroutines simultaneously, but each returned writer will be used only by one goroutine at a time. -

type Decompressor +

type Decompressor

type Decompressor func(r io.Reader) io.ReadCloser
@@ -112,7 +112,7 @@ Decompressor itself must be safe to invoke from multiple goroutines simultaneously, but each returned reader will be used only by one goroutine at a time. -

type File +

type File

type File struct {
     FileHeader
@@ -120,7 +120,7 @@ time.
 }
-

func (*File) DataOffset +

func (*File) DataOffset

func (f *File) DataOffset() (offset int64, err error)
@@ -130,14 +130,14 @@ to the beginning of the zip file. Most callers should instead use Open, which transparently decompresses data and verifies checksums. -

func (*File) Open +

func (*File) Open

func (f *File) Open() (io.ReadCloser, error)
Open returns a ReadCloser that provides access to the File's contents. Multiple files may be read concurrently. -

type FileHeader +

type FileHeader

type FileHeader struct {
     // Name is the name of the file.
@@ -190,7 +190,7 @@ files may be read concurrently.
 
 FileHeader describes a file within a zip file. See the zip spec for details.
 
-

func FileInfoHeader +

func FileInfoHeader

func FileInfoHeader(fi os.FileInfo) (*FileHeader, error)
@@ -200,13 +200,13 @@ describes, it may be necessary to modify the Name field of the returned header to provide the full path name of the file. If compression is desired, callers should set the FileHeader.Method field; it is unset by default. -

func (*FileHeader) FileInfo +

func (*FileHeader) FileInfo

func (h *FileHeader) FileInfo() os.FileInfo
FileInfo returns an os.FileInfo for the FileHeader. -

func (*FileHeader) ModTime +

func (*FileHeader) ModTime

func (h *FileHeader) ModTime() time.Time
@@ -215,13 +215,13 @@ ModifiedTime fields. Deprecated: Use Modified instead. -

func (*FileHeader) Mode +

func (*FileHeader) Mode

func (h *FileHeader) Mode() (mode os.FileMode)
Mode returns the permission and mode bits for the FileHeader. -

func (*FileHeader) SetModTime +

func (*FileHeader) SetModTime

func (h *FileHeader) SetModTime(t time.Time)
@@ -230,13 +230,13 @@ time in UTC. Deprecated: Use Modified instead. -

func (*FileHeader) SetMode +

func (*FileHeader) SetMode

func (h *FileHeader) SetMode(mode os.FileMode)
SetMode changes the permission and mode bits for the FileHeader. -

type ReadCloser +

type ReadCloser

type ReadCloser struct {
     Reader
@@ -244,19 +244,19 @@ SetMode changes the permission and mode bits for the FileHeader.
 }
-

func OpenReader +

func OpenReader

func OpenReader(name string) (*ReadCloser, error)
OpenReader will open the Zip file specified by name and return a ReadCloser. -

func (*ReadCloser) Close +

func (*ReadCloser) Close

func (rc *ReadCloser) Close() error
Close closes the Zip file, rendering it unusable for I/O. -

type Reader +

type Reader

type Reader struct {
     File    []*File
@@ -294,14 +294,14 @@ Example:
     // Contents of README:
     // This is the source code repository for the Go programming language.
 
-

func NewReader +

func NewReader

func NewReader(r io.ReaderAt, size int64) (*Reader, error)
NewReader returns a new Reader reading from r, which is assumed to have the given size in bytes. -

func (*Reader) RegisterDecompressor +

func (*Reader) RegisterDecompressor

func (z *Reader) RegisterDecompressor(method uint16, dcomp Decompressor)
@@ -309,7 +309,7 @@ RegisterDecompressor registers or overrides a custom decompressor for a specific method ID. If a decompressor for a given method is not found, Reader will default to looking up the decompressor at the package level. -

type Writer +

type Writer

type Writer struct {
     // contains filtered or unexported fields
@@ -351,20 +351,20 @@ Example:
         log.Fatal(err)
     }
 
-

func NewWriter +

func NewWriter

func NewWriter(w io.Writer) *Writer
NewWriter returns a new Writer writing a zip file to w. -

func (*Writer) Close +

func (*Writer) Close

func (w *Writer) Close() error
Close finishes writing the zip file by writing the central directory. It does not (and cannot) close the underlying writer. -

func (*Writer) Create +

func (*Writer) Create

func (w *Writer) Create(name string) (io.Writer, error)
@@ -375,7 +375,7 @@ not start with a drive letter (e.g. C:) or leading slash, and only forward slashes are allowed. The file's contents must be written to the io.Writer before the next call to Create, CreateHeader, or Close. -

func (*Writer) CreateHeader +

func (*Writer) CreateHeader

func (w *Writer) CreateHeader(fh *FileHeader) (io.Writer, error)
@@ -387,14 +387,14 @@ This returns a Writer to which the file contents should be written. The file's contents must be written to the io.Writer before the next call to Create, CreateHeader, or Close. -

func (*Writer) Flush +

func (*Writer) Flush

func (w *Writer) Flush() error
Flush flushes any buffered data to the underlying writer. Calling Flush is not normally necessary; calling Close is sufficient. -

func (*Writer) RegisterCompressor +

func (*Writer) RegisterCompressor

func (w *Writer) RegisterCompressor(method uint16, comp Compressor)
@@ -420,14 +420,14 @@ Example: // Proceed to add files to w. -

func (*Writer) SetComment +

func (*Writer) SetComment

func (w *Writer) SetComment(comment string) error
SetComment sets the end-of-central-directory comment field. It can only be called before Close. -

func (*Writer) SetOffset +

func (*Writer) SetOffset

func (w *Writer) SetOffset(n int64)
diff --git a/Source/bufio/bufio.md b/Source/bufio/bufio.md index eec934c..51bdd02 100644 --- a/Source/bufio/bufio.md +++ b/Source/bufio/bufio.md @@ -69,7 +69,7 @@ interface but provides buffering and some help for textual I/O. - [Writer](#exampleWriter) ### Package files - [bufio.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/bufio/bufio.go) [scan.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/bufio/scan.go) + [bufio.go](//github.com/golang/go/blob/release-branch.go1.10/src/bufio/bufio.go) [scan.go](//github.com/golang/go/blob/release-branch.go1.10/src/bufio/scan.go)

Constants

@@ -110,13 +110,13 @@ processing early or when it is necessary to deliver a final empty token. One could achieve the same behavior with a custom error value but providing one here is tidier. See the emptyFinalToken example for a use of this value. -

func ScanBytes +

func ScanBytes

func ScanBytes(data []byte, atEOF bool) (advance int, token []byte, err error)
ScanBytes is a split function for a Scanner that returns each byte as a token. -

func ScanLines +

func ScanLines

func ScanLines(data []byte, atEOF bool) (advance int, token []byte, err error)
@@ -126,7 +126,7 @@ end-of-line marker is one optional carriage return followed by one mandatory newline. In regular expression notation, it is `\r?\n`. The last non-empty line of input will be returned even if it has no newline. -

func ScanRunes +

func ScanRunes

func ScanRunes(data []byte, atEOF bool) (advance int, token []byte, err error)
@@ -137,7 +137,7 @@ translate to U+FFFD = "\xef\xbf\xbd". Because of the Scan interface, this makes it impossible for the client to distinguish correctly encoded replacement runes from encoding errors. -

func ScanWords +

func ScanWords

func ScanWords(data []byte, atEOF bool) (advance int, token []byte, err error)
@@ -145,7 +145,7 @@ ScanWords is a split function for a Scanner that returns each space-separated word of text, with surrounding spaces deleted. It will never return an empty string. The definition of space is set by unicode.IsSpace. -

type ReadWriter +

type ReadWriter

type ReadWriter struct {
     *Reader
@@ -155,13 +155,13 @@ string. The definition of space is set by unicode.IsSpace.
 ReadWriter stores pointers to a Reader and a Writer. It implements
 io.ReadWriter.
 
-

func NewReadWriter +

func NewReadWriter

func NewReadWriter(r *Reader, w *Writer) *ReadWriter
NewReadWriter allocates a new ReadWriter that dispatches to r and w. -

type Reader +

type Reader

type Reader struct {
     // contains filtered or unexported fields
@@ -169,13 +169,13 @@ NewReadWriter allocates a new ReadWriter that dispatches to r and w.
 
 Reader implements buffering for an io.Reader object.
 
-

func NewReader +

func NewReader

func NewReader(rd io.Reader) *Reader
NewReader returns a new Reader whose buffer has the default size. -

func NewReaderSize +

func NewReaderSize

func NewReaderSize(rd io.Reader, size int) *Reader
@@ -183,13 +183,13 @@ NewReaderSize returns a new Reader whose buffer has at least the specified size. If the argument io.Reader is already a Reader with large enough size, it returns the underlying Reader. -

func (*Reader) Buffered +

func (*Reader) Buffered

func (b *Reader) Buffered() int
Buffered returns the number of bytes that can be read from the current buffer. -

func (*Reader) Discard +

func (*Reader) Discard

func (b *Reader) Discard(n int) (discarded int, err error)
@@ -199,7 +199,7 @@ If Discard skips fewer than n bytes, it also returns an error. If 0 <= n <= b.Buffered(), Discard is guaranteed to succeed without reading from the underlying io.Reader. -

func (*Reader) Peek +

func (*Reader) Peek

func (b *Reader) Peek(n int) ([]byte, error)
@@ -208,7 +208,7 @@ valid at the next read call. If Peek returns fewer than n bytes, it also returns an error explaining why the read is short. The error is ErrBufferFull if n is larger than b's buffer size. -

func (*Reader) Read +

func (*Reader) Read

func (b *Reader) Read(p []byte) (n int, err error)
@@ -216,14 +216,14 @@ Read reads data into p. It returns the number of bytes read into p. The bytes are taken from at most one Read on the underlying Reader, hence n may be less than len(p). At EOF, the count will be zero and err will be io.EOF. -

func (*Reader) ReadByte +

func (*Reader) ReadByte

func (b *Reader) ReadByte() (byte, error)
ReadByte reads and returns a single byte. If no byte is available, returns an error. -

func (*Reader) ReadBytes +

func (*Reader) ReadBytes

func (b *Reader) ReadBytes(delim byte) ([]byte, error)
@@ -234,7 +234,7 @@ the error and the error itself (often io.EOF). ReadBytes returns err != nil if and only if the returned data does not end in delim. For simple uses, a Scanner may be more convenient. -

func (*Reader) ReadLine +

func (*Reader) ReadLine

func (b *Reader) ReadLine() (line []byte, isPrefix bool, err error)
@@ -254,7 +254,7 @@ Calling UnreadByte after ReadLine will always unread the last byte read (possibly a character belonging to the line end) even if that byte is not part of the line returned by ReadLine. -

func (*Reader) ReadRune +

func (*Reader) ReadRune

func (b *Reader) ReadRune() (r rune, size int, err error)
@@ -262,7 +262,7 @@ ReadRune reads a single UTF-8 encoded Unicode character and returns the rune and its size in bytes. If the encoded rune is invalid, it consumes one byte and returns unicode.ReplacementChar (U+FFFD) with a size of 1. -

func (*Reader) ReadSlice +

func (*Reader) ReadSlice

func (b *Reader) ReadSlice(delim byte) (line []byte, err error)
@@ -275,7 +275,7 @@ Because the data returned from ReadSlice will be overwritten by the next I/O operation, most clients should use ReadBytes or ReadString instead. ReadSlice returns err != nil if and only if line does not end in delim. -

func (*Reader) ReadString +

func (*Reader) ReadString

func (b *Reader) ReadString(delim byte) (string, error)
@@ -286,27 +286,27 @@ the error and the error itself (often io.EOF). ReadString returns err != nil if and only if the returned data does not end in delim. For simple uses, a Scanner may be more convenient. -

func (*Reader) Reset +

func (*Reader) Reset

func (b *Reader) Reset(r io.Reader)
Reset discards any buffered data, resets all state, and switches the buffered reader to read from r. -

func (*Reader) Size +

func (*Reader) Size

func (r *Reader) Size() int
Size returns the size of the underlying buffer in bytes. -

func (*Reader) UnreadByte +

func (*Reader) UnreadByte

func (b *Reader) UnreadByte() error
UnreadByte unreads the last byte. Only the most recently read byte can be unread. -

func (*Reader) UnreadRune +

func (*Reader) UnreadRune

func (b *Reader) UnreadRune() error
@@ -315,14 +315,14 @@ buffer was not a ReadRune, UnreadRune returns an error. (In this regard it is stricter than UnreadByte, which will unread the last byte from any read operation.) -

func (*Reader) WriteTo +

func (*Reader) WriteTo

func (b *Reader) WriteTo(w io.Writer) (n int64, err error)
WriteTo implements io.WriterTo. This may make multiple calls to the Read method of the underlying Reader. -

type Scanner +

type Scanner

type Scanner struct {
     // contains filtered or unexported fields
@@ -433,14 +433,14 @@ Example:
     fmt.Printf("%d\n", count)
     // Output: 15
 
-

func NewScanner +

func NewScanner

func NewScanner(r io.Reader) *Scanner
NewScanner returns a new Scanner to read from r. The split function defaults to ScanLines. -

func (*Scanner) Buffer +

func (*Scanner) Buffer

func (s *Scanner) Buffer(buf []byte, max int)
@@ -454,7 +454,7 @@ MaxScanTokenSize. Buffer panics if it is called after scanning has started. -

func (*Scanner) Bytes +

func (*Scanner) Bytes

func (s *Scanner) Bytes() []byte
@@ -462,13 +462,13 @@ Bytes returns the most recent token generated by a call to Scan. The underlying array may point to data that will be overwritten by a subsequent call to Scan. It does no allocation. -

func (*Scanner) Err +

func (*Scanner) Err

func (s *Scanner) Err() error
Err returns the first non-EOF error that was encountered by the Scanner. -

func (*Scanner) Scan +

func (*Scanner) Scan

func (s *Scanner) Scan() bool
@@ -480,7 +480,7 @@ was io.EOF, Err will return nil. Scan panics if the split function returns too many empty tokens without advancing the input. This is a common error mode for scanners. -

func (*Scanner) Split +

func (*Scanner) Split

func (s *Scanner) Split(split SplitFunc)
@@ -489,14 +489,14 @@ ScanLines. Split panics if it is called after scanning has started. -

func (*Scanner) Text +

func (*Scanner) Text

func (s *Scanner) Text() string
Text returns the most recent token generated by a call to Scan as a newly allocated string holding its bytes. -

type SplitFunc +

type SplitFunc

type SplitFunc func(data []byte, atEOF bool) (advance int, token []byte, err error)
@@ -516,7 +516,7 @@ The function is never called with an empty data slice unless atEOF is true. If atEOF is true, however, data may be non-empty and, as always, holds unprocessed text. -

type Writer +

type Writer

type Writer struct {
     // contains filtered or unexported fields
@@ -537,13 +537,13 @@ Example:
     w.Flush() // Don't forget to flush!
     // Output: Hello, world!
 
-

func NewWriter +

func NewWriter

func NewWriter(w io.Writer) *Writer
NewWriter returns a new Writer whose buffer has the default size. -

func NewWriterSize +

func NewWriterSize

func NewWriterSize(w io.Writer, size int) *Writer
@@ -551,45 +551,45 @@ NewWriterSize returns a new Writer whose buffer has at least the specified size. If the argument io.Writer is already a Writer with large enough size, it returns the underlying Writer. -

func (*Writer) Available +

func (*Writer) Available

func (b *Writer) Available() int
Available returns how many bytes are unused in the buffer. -

func (*Writer) Buffered +

func (*Writer) Buffered

func (b *Writer) Buffered() int
Buffered returns the number of bytes that have been written into the current buffer. -

func (*Writer) Flush +

func (*Writer) Flush

func (b *Writer) Flush() error
Flush writes any buffered data to the underlying io.Writer. -

func (*Writer) ReadFrom +

func (*Writer) ReadFrom

func (b *Writer) ReadFrom(r io.Reader) (n int64, err error)
ReadFrom implements io.ReaderFrom. -

func (*Writer) Reset +

func (*Writer) Reset

func (b *Writer) Reset(w io.Writer)
Reset discards any unflushed buffered data, clears any error, and resets b to write its output to w. -

func (*Writer) Size +

func (*Writer) Size

func (b *Writer) Size() int
Size returns the size of the underlying buffer in bytes. -

func (*Writer) Write +

func (*Writer) Write

func (b *Writer) Write(p []byte) (nn int, err error)
@@ -597,20 +597,20 @@ Write writes the contents of p into the buffer. It returns the number of bytes written. If nn < len(p), it also returns an error explaining why the write is short. -

func (*Writer) WriteByte +

func (*Writer) WriteByte

func (b *Writer) WriteByte(c byte) error
WriteByte writes a single byte. -

func (*Writer) WriteRune +

func (*Writer) WriteRune

func (b *Writer) WriteRune(r rune) (size int, err error)
WriteRune writes a single Unicode code point, returning the number of bytes written and any error. -

func (*Writer) WriteString +

func (*Writer) WriteString

func (b *Writer) WriteString(s string) (int, error)
diff --git a/Source/builtin/builtin.md b/Source/builtin/builtin.md index 0eec7bd..027e742 100644 --- a/Source/builtin/builtin.md +++ b/Source/builtin/builtin.md @@ -56,7 +56,7 @@ identifiers. - [type uintptr](#uintptr) ### Package files - [builtin.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/builtin/builtin.go) + [builtin.go](//github.com/golang/go/blob/release-branch.go1.10/src/builtin/builtin.go)

Constants

@@ -82,7 +82,7 @@ declaration. It is zero-indexed. nil is a predeclared identifier representing the zero value for a pointer, channel, func, interface, map, or slice type. -

func append +

func append

func append(slice []Type, elems ...Type) []Type
@@ -99,7 +99,7 @@ As a special case, it is legal to append a string to a byte slice, like this: slice = append([]byte("hello "), "world"...) -

func cap +

func cap

func cap(v Type) int
@@ -112,7 +112,7 @@ The cap built-in function returns the capacity of v, according to its type: Channel: the channel buffer capacity, in units of elements; if v is nil, cap(v) is zero. -

func close +

func close

func close(c chan<- Type)
@@ -127,7 +127,7 @@ channel element. The form will also set ok to false for a closed channel. -

func complex +

func complex

func complex(r, i FloatType) ComplexType
@@ -136,7 +136,7 @@ values. The real and imaginary parts must be of the same size, either float32 or float64 (or assignable to them), and the return value will be the corresponding complex type (complex64 for float32, complex128 for float64). -

func copy +

func copy

func copy(dst, src []Type) int
@@ -145,21 +145,21 @@ destination slice. (As a special case, it also will copy bytes from a string to a slice of bytes.) The source and destination may overlap. Copy returns the number of elements copied, which will be the minimum of len(src) and len(dst). -

func delete +

func delete

func delete(m map[Type]Type1, key Type)
The delete built-in function deletes the element with the specified key (m[key]) from the map. If m is nil or there is no such element, delete is a no-op. -

func imag +

func imag

func imag(c ComplexType) FloatType
The imag built-in function returns the imaginary part of the complex number c. The return value will be floating point type corresponding to the type of c. -

func len +

func len

func len(v Type) int
@@ -172,7 +172,7 @@ The len built-in function returns the length of v, according to its type: Channel: the number of elements queued (unread) in the channel buffer; if v is nil, len(v) is zero. -

func make +

func make

func make(t Type, size ...IntegerType) Type
@@ -194,7 +194,7 @@ to it. The specification of the result depends on the type: buffer capacity. If zero, or the size is omitted, the channel is unbuffered. -

func new +

func new

func new(Type) *Type
@@ -202,7 +202,7 @@ The new built-in function allocates memory. The first argument is a type, not a value, and the value returned is a pointer to a newly allocated zero value of that type. -

func panic +

func panic

func panic(v interface{})
@@ -217,7 +217,7 @@ is reported, including the value of the argument to panic. This termination sequence is called panicking and can be controlled by the built-in function recover. -

func print +

func print

func print(args ...Type)
@@ -225,7 +225,7 @@ The print built-in function formats its arguments in an implementation-specific way and writes the result to standard error. Print is useful for bootstrapping and debugging; it is not guaranteed to stay in the language. -

func println +

func println

func println(args ...Type)
@@ -234,14 +234,14 @@ implementation-specific way and writes the result to standard error. Spaces are always added between arguments and a newline is appended. Println is useful for bootstrapping and debugging; it is not guaranteed to stay in the language. -

func real +

func real

func real(c ComplexType) FloatType
The real built-in function returns the real part of the complex number c. The return value will be floating point type corresponding to the type of c. -

func recover +

func recover

func recover() interface{}
@@ -254,69 +254,69 @@ In this case, or when the goroutine is not panicking, or if the argument supplied to panic was nil, recover returns nil. Thus the return value from recover reports whether the goroutine is panicking. -

type ComplexType +

type ComplexType

type ComplexType complex64
ComplexType is here for the purposes of documentation only. It is a stand-in for either complex type: complex64 or complex128. -

type FloatType +

type FloatType

type FloatType float32
FloatType is here for the purposes of documentation only. It is a stand-in for either float type: float32 or float64. -

type IntegerType +

type IntegerType

type IntegerType int
IntegerType is here for the purposes of documentation only. It is a stand-in for any integer type: int, uint, int8 etc. -

type Type +

type Type

type Type int
Type is here for the purposes of documentation only. It is a stand-in for any Go type, but represents the same type for any given function invocation. -

type Type1 +

type Type1

type Type1 int
Type1 is here for the purposes of documentation only. It is a stand-in for any Go type, but represents the same type for any given function invocation. -

type bool +

type bool

type bool bool
bool is the set of boolean values, true and false. -

type byte +

type byte

type byte = uint8
byte is an alias for uint8 and is equivalent to uint8 in all ways. It is used, by convention, to distinguish byte values from 8-bit unsigned integer values. -

type complex128 +

type complex128

type complex128 complex128
complex128 is the set of all complex numbers with float64 real and imaginary parts. -

type complex64 +

type complex64

type complex64 complex64
complex64 is the set of all complex numbers with float32 real and imaginary parts. -

type error +

type error

type error interface {
     Error() string
@@ -325,59 +325,59 @@ parts.
 The error built-in interface type is the conventional interface for representing
 an error condition, with the nil value representing no error.
 
-

type float32 +

type float32

type float32 float32
float32 is the set of all IEEE-754 32-bit floating-point numbers. -

type float64 +

type float64

type float64 float64
float64 is the set of all IEEE-754 64-bit floating-point numbers. -

type int +

type int

type int int
int is a signed integer type that is at least 32 bits in size. It is a distinct type, however, and not an alias for, say, int32. -

type int16 +

type int16

type int16 int16
int16 is the set of all signed 16-bit integers. Range: -32768 through 32767. -

type int32 +

type int32

type int32 int32
int32 is the set of all signed 32-bit integers. Range: -2147483648 through 2147483647. -

type int64 +

type int64

type int64 int64
int64 is the set of all signed 64-bit integers. Range: -9223372036854775808 through 9223372036854775807. -

type int8 +

type int8

type int8 int8
int8 is the set of all signed 8-bit integers. Range: -128 through 127. -

type rune +

type rune

type rune = int32
rune is an alias for int32 and is equivalent to int32 in all ways. It is used, by convention, to distinguish character values from integer values. -

type string +

type string

type string string
@@ -385,39 +385,39 @@ string is the set of all strings of 8-bit bytes, conventionally but not necessarily representing UTF-8-encoded text. A string may be empty, but not nil. Values of string type are immutable. -

type uint +

type uint

type uint uint
uint is an unsigned integer type that is at least 32 bits in size. It is a distinct type, however, and not an alias for, say, uint32. -

type uint16 +

type uint16

type uint16 uint16
uint16 is the set of all unsigned 16-bit integers. Range: 0 through 65535. -

type uint32 +

type uint32

type uint32 uint32
uint32 is the set of all unsigned 32-bit integers. Range: 0 through 4294967295. -

type uint64 +

type uint64

type uint64 uint64
uint64 is the set of all unsigned 64-bit integers. Range: 0 through 18446744073709551615. -

type uint8 +

type uint8

type uint8 uint8
uint8 is the set of all unsigned 8-bit integers. Range: 0 through 255. -

type uintptr +

type uintptr

type uintptr uintptr
diff --git a/Source/bytes/bytes.md b/Source/bytes/bytes.md index 3a011a8..3ae09e2 100644 --- a/Source/bytes/bytes.md +++ b/Source/bytes/bytes.md @@ -147,7 +147,7 @@ analogous to the facilities of the strings package. - [TrimSuffix](#exampleTrimSuffix) ### Package files - [buffer.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/bytes/buffer.go) [bytes.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/bytes/bytes.go) [bytes_amd64.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/bytes/bytes_amd64.go) [bytes_decl.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/bytes/bytes_decl.go) [reader.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/bytes/reader.go) + [buffer.go](//github.com/golang/go/blob/release-branch.go1.10/src/bytes/buffer.go) [bytes.go](//github.com/golang/go/blob/release-branch.go1.10/src/bytes/bytes.go) [bytes_amd64.go](//github.com/golang/go/blob/release-branch.go1.10/src/bytes/bytes_amd64.go) [bytes_decl.go](//github.com/golang/go/blob/release-branch.go1.10/src/bytes/bytes_decl.go) [reader.go](//github.com/golang/go/blob/release-branch.go1.10/src/bytes/reader.go)

Constants

@@ -164,7 +164,7 @@ the contents of r, ReadFrom will not grow the underlying buffer. ErrTooLarge is passed to panic if memory cannot be allocated to store data in a buffer. -

func Compare +

func Compare

func Compare(a, b []byte) int
@@ -213,7 +213,7 @@ Example: // Found it! } -

func Contains +

func Contains

func Contains(b, subslice []byte) bool
@@ -232,7 +232,7 @@ Example: // true // true -

func ContainsAny +

func ContainsAny

func ContainsAny(b []byte, chars string) bool
@@ -252,7 +252,7 @@ Example: // false // false -

func ContainsRune +

func ContainsRune

func ContainsRune(b []byte, r rune) bool
@@ -274,7 +274,7 @@ Example: // true // false -

func Count +

func Count

func Count(s, sep []byte) int
@@ -290,7 +290,7 @@ Example: // 3 // 5 -

func Equal +

func Equal

func Equal(a, b []byte) bool
@@ -306,7 +306,7 @@ Example: // true // false -

func EqualFold +

func EqualFold

func EqualFold(s, t []byte) bool
@@ -319,7 +319,7 @@ Example: fmt.Println(bytes.EqualFold([]byte("Go"), []byte("go"))) // Output: true -

func Fields +

func Fields

func Fields(s []byte) [][]byte
@@ -334,7 +334,7 @@ Example: fmt.Printf("Fields are: %q", bytes.Fields([]byte(" foo bar baz "))) // Output: Fields are: ["foo" "bar" "baz"] -

func FieldsFunc +

func FieldsFunc

func FieldsFunc(s []byte, f func(rune) bool) [][]byte
@@ -354,7 +354,7 @@ Example: fmt.Printf("Fields are: %q", bytes.FieldsFunc([]byte(" foo1;bar2,baz3..."), f)) // Output: Fields are: ["foo1" "bar2" "baz3"] -

func HasPrefix +

func HasPrefix

func HasPrefix(s, prefix []byte) bool
@@ -371,7 +371,7 @@ Example: // false // true -

func HasSuffix +

func HasSuffix

func HasSuffix(s, suffix []byte) bool
@@ -390,7 +390,7 @@ Example: // false // true -

func Index +

func Index

func Index(s, sep []byte) int
@@ -406,7 +406,7 @@ Example: // 4 // -1 -

func IndexAny +

func IndexAny

func IndexAny(s []byte, chars string) int
@@ -424,7 +424,7 @@ Example: // 2 // -1 -

func IndexByte +

func IndexByte

func IndexByte(s []byte, c byte) int
@@ -440,7 +440,7 @@ Example: // 4 // -1 -

func IndexFunc +

func IndexFunc

func IndexFunc(s []byte, f func(r rune) bool) int
@@ -460,7 +460,7 @@ Example: // 7 // -1 -

func IndexRune +

func IndexRune

func IndexRune(s []byte, r rune) int
@@ -478,7 +478,7 @@ Example: // 4 // -1 -

func Join +

func Join

func Join(s [][]byte, sep []byte) []byte
@@ -492,7 +492,7 @@ Example: fmt.Printf("%s", bytes.Join(s, []byte(", "))) // Output: foo, bar, baz -

func LastIndex +

func LastIndex

func LastIndex(s, sep []byte) int
@@ -510,7 +510,7 @@ Example: // 3 // -1 -

func LastIndexAny +

func LastIndexAny

func LastIndexAny(s []byte, chars string) int
@@ -530,7 +530,7 @@ Example: // 3 // -1 -

func LastIndexByte +

func LastIndexByte

func LastIndexByte(s []byte, c byte) int
@@ -548,7 +548,7 @@ Example: // 8 // -1 -

func LastIndexFunc +

func LastIndexFunc

func LastIndexFunc(s []byte, f func(r rune) bool) int
@@ -567,7 +567,7 @@ Example: // 9 // -1 -

func Map +

func Map

func Map(mapping func(r rune) rune, s []byte) []byte
@@ -591,7 +591,7 @@ Example: fmt.Printf("%s", bytes.Map(rot13, []byte("'Twas brillig and the slithy gopher..."))) // Output: 'Gjnf oevyyvt naq gur fyvgul tbcure... -

func Repeat +

func Repeat

func Repeat(b []byte, count int) []byte
@@ -605,7 +605,7 @@ Example: fmt.Printf("ba%s", bytes.Repeat([]byte("na"), 2)) // Output: banana -

func Replace +

func Replace

func Replace(s, old, new []byte, n int) []byte
@@ -623,7 +623,7 @@ Example: // oinky oinky oink // moo moo moo -

func Runes +

func Runes

func Runes(s []byte) []rune
@@ -648,7 +648,7 @@ Example: // U+0065 'e' // U+0072 'r' -

func Split +

func Split

func Split(s, sep []byte) [][]byte
@@ -669,7 +669,7 @@ Example: // [" " "x" "y" "z" " "] // [""] -

func SplitAfter +

func SplitAfter

func SplitAfter(s, sep []byte) [][]byte
@@ -683,7 +683,7 @@ Example: fmt.Printf("%q\n", bytes.SplitAfter([]byte("a,b,c"), []byte(","))) // Output: ["a," "b," "c"] -

func SplitAfterN +

func SplitAfterN

func SplitAfterN(s, sep []byte, n int) [][]byte
@@ -701,7 +701,7 @@ Example: fmt.Printf("%q\n", bytes.SplitAfterN([]byte("a,b,c"), []byte(","), 2)) // Output: ["a," "b,c"] -

func SplitN +

func SplitN

func SplitN(s, sep []byte, n int) [][]byte
@@ -723,7 +723,7 @@ Example: // ["a" "b,c"] // [] (nil = true) -

func Title +

func Title

func Title(s []byte) []byte
@@ -739,7 +739,7 @@ Example: fmt.Printf("%s", bytes.Title([]byte("her royal highness"))) // Output: Her Royal Highness -

func ToLower +

func ToLower

func ToLower(s []byte) []byte
@@ -752,7 +752,7 @@ Example: fmt.Printf("%s", bytes.ToLower([]byte("Gopher"))) // Output: gopher -

func ToLowerSpecial +

func ToLowerSpecial

func ToLowerSpecial(c unicode.SpecialCase, s []byte) []byte
@@ -760,7 +760,7 @@ ToLowerSpecial treats s as UTF-8-encoded bytes and returns a copy with all the Unicode letters mapped to their lower case, giving priority to the special casing rules. -

func ToTitle +

func ToTitle

func ToTitle(s []byte) []byte
@@ -776,7 +776,7 @@ Example: // LOUD NOISES // ХЛЕБ -

func ToTitleSpecial +

func ToTitleSpecial

func ToTitleSpecial(c unicode.SpecialCase, s []byte) []byte
@@ -784,7 +784,7 @@ ToTitleSpecial treats s as UTF-8-encoded bytes and returns a copy with all the Unicode letters mapped to their title case, giving priority to the special casing rules. -

func ToUpper +

func ToUpper

func ToUpper(s []byte) []byte
@@ -797,7 +797,7 @@ Example: fmt.Printf("%s", bytes.ToUpper([]byte("Gopher"))) // Output: GOPHER -

func ToUpperSpecial +

func ToUpperSpecial

func ToUpperSpecial(c unicode.SpecialCase, s []byte) []byte
@@ -805,7 +805,7 @@ ToUpperSpecial treats s as UTF-8-encoded bytes and returns a copy with all the Unicode letters mapped to their upper case, giving priority to the special casing rules. -

func Trim +

func Trim

func Trim(s []byte, cutset string) []byte
@@ -818,7 +818,7 @@ Example: fmt.Printf("[%q]", bytes.Trim([]byte(" !!! Achtung! Achtung! !!! "), "! ")) // Output: ["Achtung! Achtung"] -

func TrimFunc +

func TrimFunc

func TrimFunc(s []byte, f func(r rune) bool) []byte
@@ -838,7 +838,7 @@ Example: // go-gopher // go-gopher! -

func TrimLeft +

func TrimLeft

func TrimLeft(s []byte, cutset string) []byte
@@ -852,7 +852,7 @@ Example: // Output: // gopher8257 -

func TrimLeftFunc +

func TrimLeftFunc

func TrimLeftFunc(s []byte, f func(r rune) bool) []byte
@@ -870,7 +870,7 @@ Example: // go-gopher! // go-gopher!567 -

func TrimPrefix +

func TrimPrefix

func TrimPrefix(s, prefix []byte) []byte
@@ -886,7 +886,7 @@ Example: fmt.Printf("Hello%s", b) // Output: Hello, world! -

func TrimRight +

func TrimRight

func TrimRight(s []byte, cutset string) []byte
@@ -900,7 +900,7 @@ Example: // Output: // 453gopher -

func TrimRightFunc +

func TrimRightFunc

func TrimRightFunc(s []byte, f func(r rune) bool) []byte
@@ -918,7 +918,7 @@ Example: // go-gopher // 1234go-gopher! -

func TrimSpace +

func TrimSpace

func TrimSpace(s []byte) []byte
@@ -931,7 +931,7 @@ Example: fmt.Printf("%s", bytes.TrimSpace([]byte(" \t\n a lone gopher \n\t\r\n"))) // Output: a lone gopher -

func TrimSuffix +

func TrimSuffix

func TrimSuffix(s, suffix []byte) []byte
@@ -948,7 +948,7 @@ Example: os.Stdout.Write(b) // Output: Hello, world! -

type Buffer +

type Buffer

type Buffer struct {
     // contains filtered or unexported fields
@@ -976,7 +976,7 @@ Example:
     io.Copy(os.Stdout, dec)
     // Output: Gophers rule!
 
-

func NewBuffer +

func NewBuffer

func NewBuffer(buf []byte) *Buffer
@@ -989,7 +989,7 @@ buf should have the desired capacity but a length of zero. In most cases, new(Buffer) (or just declaring a Buffer variable) is sufficient to initialize a Buffer. -

func NewBufferString +

func NewBufferString

func NewBufferString(s string) *Buffer
@@ -999,7 +999,7 @@ initial contents. It is intended to prepare a buffer to read an existing string. In most cases, new(Buffer) (or just declaring a Buffer variable) is sufficient to initialize a Buffer. -

func (*Buffer) Bytes +

func (*Buffer) Bytes

func (b *Buffer) Bytes() []byte
@@ -1010,14 +1010,14 @@ The slice aliases the buffer content at least until the next buffer modification, so immediate changes to the slice will affect the result of future reads. -

func (*Buffer) Cap +

func (*Buffer) Cap

func (b *Buffer) Cap() int
Cap returns the capacity of the buffer's underlying byte slice, that is, the total space allocated for the buffer's data. -

func (*Buffer) Grow +

func (*Buffer) Grow

func (b *Buffer) Grow(n int)
@@ -1036,14 +1036,14 @@ Example: fmt.Printf("%q", bb[:b.Len()]) // Output: "64 bytes or fewer" -

func (*Buffer) Len +

func (*Buffer) Len

func (b *Buffer) Len() int
Len returns the number of bytes of the unread portion of the buffer; b.Len() == len(b.Bytes()). -

func (*Buffer) Next +

func (*Buffer) Next

func (b *Buffer) Next(n int) []byte
@@ -1052,7 +1052,7 @@ buffer as if the bytes had been returned by Read. If there are fewer than n bytes in the buffer, Next returns the entire buffer. The slice is only valid until the next call to a read or write method. -

func (*Buffer) Read +

func (*Buffer) Read

func (b *Buffer) Read(p []byte) (n int, err error)
@@ -1060,14 +1060,14 @@ Read reads the next len(p) bytes from the buffer or until the buffer is drained. The return value n is the number of bytes read. If the buffer has no data to return, err is io.EOF (unless len(p) is zero); otherwise it is nil. -

func (*Buffer) ReadByte +

func (*Buffer) ReadByte

func (b *Buffer) ReadByte() (byte, error)
ReadByte reads and returns the next byte from the buffer. If no byte is available, it returns error io.EOF. -

func (*Buffer) ReadBytes +

func (*Buffer) ReadBytes

func (b *Buffer) ReadBytes(delim byte) (line []byte, err error)
@@ -1077,7 +1077,7 @@ encounters an error before finding a delimiter, it returns the data read before the error and the error itself (often io.EOF). ReadBytes returns err != nil if and only if the returned data does not end in delim. -

func (*Buffer) ReadFrom +

func (*Buffer) ReadFrom

func (b *Buffer) ReadFrom(r io.Reader) (n int64, err error)
@@ -1086,7 +1086,7 @@ buffer as needed. The return value n is the number of bytes read. Any error except io.EOF encountered during the read is also returned. If the buffer becomes too large, ReadFrom will panic with ErrTooLarge. -

func (*Buffer) ReadRune +

func (*Buffer) ReadRune

func (b *Buffer) ReadRune() (r rune, size int, err error)
@@ -1094,7 +1094,7 @@ ReadRune reads and returns the next UTF-8-encoded Unicode code point from the buffer. If no bytes are available, the error returned is io.EOF. If the bytes are an erroneous UTF-8 encoding, it consumes one byte and returns U+FFFD, 1. -

func (*Buffer) ReadString +

func (*Buffer) ReadString

func (b *Buffer) ReadString(delim byte) (line string, err error)
@@ -1104,14 +1104,14 @@ encounters an error before finding a delimiter, it returns the data read before the error and the error itself (often io.EOF). ReadString returns err != nil if and only if the returned data does not end in delim. -

func (*Buffer) Reset +

func (*Buffer) Reset

func (b *Buffer) Reset()
Reset resets the buffer to be empty, but it retains the underlying storage for use by future writes. Reset is the same as Truncate(0). -

func (*Buffer) String +

func (*Buffer) String

func (b *Buffer) String() string
@@ -1120,7 +1120,7 @@ the Buffer is a nil pointer, it returns "". To build strings more efficiently, see the strings.Builder type. -

func (*Buffer) Truncate +

func (*Buffer) Truncate

func (b *Buffer) Truncate(n int)
@@ -1128,7 +1128,7 @@ Truncate discards all but the first n unread bytes from the buffer but continues to use the same allocated storage. It panics if n is negative or greater than the length of the buffer. -

func (*Buffer) UnreadByte +

func (*Buffer) UnreadByte

func (b *Buffer) UnreadByte() error
@@ -1137,7 +1137,7 @@ operation that read at least one byte. If a write has happened since the last read, if the last read returned an error, or if the read read zero bytes, UnreadByte returns an error. -

func (*Buffer) UnreadRune +

func (*Buffer) UnreadRune

func (b *Buffer) UnreadRune() error
@@ -1146,7 +1146,7 @@ or write operation on the buffer was not a successful ReadRune, UnreadRune returns an error. (In this regard it is stricter than UnreadByte, which will unread the last byte from any read operation.) -

func (*Buffer) Write +

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (n int, err error)
@@ -1154,7 +1154,7 @@ Write appends the contents of p to the buffer, growing the buffer as needed. The return value n is the length of p; err is always nil. If the buffer becomes too large, Write will panic with ErrTooLarge. -

func (*Buffer) WriteByte +

func (*Buffer) WriteByte

func (b *Buffer) WriteByte(c byte) error
@@ -1162,7 +1162,7 @@ WriteByte appends the byte c to the buffer, growing the buffer as needed. The returned error is always nil, but is included to match bufio.Writer's WriteByte. If the buffer becomes too large, WriteByte will panic with ErrTooLarge. -

func (*Buffer) WriteRune +

func (*Buffer) WriteRune

func (b *Buffer) WriteRune(r rune) (n int, err error)
@@ -1171,7 +1171,7 @@ returning its length and an error, which is always nil but is included to match bufio.Writer's WriteRune. The buffer is grown as needed; if it becomes too large, WriteRune will panic with ErrTooLarge. -

func (*Buffer) WriteString +

func (*Buffer) WriteString

func (b *Buffer) WriteString(s string) (n int, err error)
@@ -1179,7 +1179,7 @@ WriteString appends the contents of s to the buffer, growing the buffer as needed. The return value n is the length of s; err is always nil. If the buffer becomes too large, WriteString will panic with ErrTooLarge. -

func (*Buffer) WriteTo +

func (*Buffer) WriteTo

func (b *Buffer) WriteTo(w io.Writer) (n int64, err error)
@@ -1188,7 +1188,7 @@ return value n is the number of bytes written; it always fits into an int, but it is int64 to match the io.WriterTo interface. Any error encountered during the write is also returned. -

type Reader +

type Reader

type Reader struct {
     // contains filtered or unexported fields
@@ -1198,13 +1198,13 @@ A Reader implements the io.Reader, io.ReaderAt, io.WriterTo, io.Seeker,
 io.ByteScanner, and io.RuneScanner interfaces by reading from a byte slice.
 Unlike a Buffer, a Reader is read-only and supports seeking.
 
-

func NewReader +

func NewReader

func NewReader(b []byte) *Reader
NewReader returns a new Reader reading from b. -

func (*Reader) Len +

func (*Reader) Len

func (r *Reader) Len() int
@@ -1219,43 +1219,43 @@ Example: // 3 // 16 -

func (*Reader) Read +

func (*Reader) Read

func (r *Reader) Read(b []byte) (n int, err error)
Read implements the io.Reader interface. -

func (*Reader) ReadAt +

func (*Reader) ReadAt

func (r *Reader) ReadAt(b []byte, off int64) (n int, err error)
ReadAt implements the io.ReaderAt interface. -

func (*Reader) ReadByte +

func (*Reader) ReadByte

func (r *Reader) ReadByte() (byte, error)
ReadByte implements the io.ByteReader interface. -

func (*Reader) ReadRune +

func (*Reader) ReadRune

func (r *Reader) ReadRune() (ch rune, size int, err error)
ReadRune implements the io.RuneReader interface. -

func (*Reader) Reset +

func (*Reader) Reset

func (r *Reader) Reset(b []byte)
Reset resets the Reader to be reading from b. -

func (*Reader) Seek +

func (*Reader) Seek

func (r *Reader) Seek(offset int64, whence int) (int64, error)
Seek implements the io.Seeker interface. -

func (*Reader) Size +

func (*Reader) Size

func (r *Reader) Size() int64
@@ -1263,19 +1263,19 @@ Size returns the original length of the underlying byte slice. Size is the number of bytes available for reading via ReadAt. The returned value is always the same and is not affected by calls to any other method. -

func (*Reader) UnreadByte +

func (*Reader) UnreadByte

func (r *Reader) UnreadByte() error
UnreadByte complements ReadByte in implementing the io.ByteScanner interface. -

func (*Reader) UnreadRune +

func (*Reader) UnreadRune

func (r *Reader) UnreadRune() error
UnreadRune complements ReadRune in implementing the io.RuneScanner interface. -

func (*Reader) WriteTo +

func (*Reader) WriteTo

func (r *Reader) WriteTo(w io.Writer) (n int64, err error)
@@ -1283,7 +1283,7 @@ WriteTo implements the io.WriterTo interface.

Bugs

-- [☞](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/bytes/bytes.go#L520) The rule Title uses for word boundaries does not handle Unicode punctuation +- [☞](//github.com/golang/go/blob/release-branch.go1.10/src/bytes/bytes.go#L520) The rule Title uses for word boundaries does not handle Unicode punctuation properly. diff --git a/Source/compress/bzip2/bzip2.md b/Source/compress/bzip2/bzip2.md index 85f236e..a24eee9 100644 --- a/Source/compress/bzip2/bzip2.md +++ b/Source/compress/bzip2/bzip2.md @@ -14,9 +14,9 @@ Package bzip2 implements bzip2 decompression. - [func (s StructuralError) Error() string](#StructuralError.Error) ### Package files - [bit_reader.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/bzip2/bit_reader.go) [bzip2.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/bzip2/bzip2.go) [huffman.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/bzip2/huffman.go) [move_to_front.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/bzip2/move_to_front.go) + [bit_reader.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/bzip2/bit_reader.go) [bzip2.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/bzip2/bzip2.go) [huffman.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/bzip2/huffman.go) [move_to_front.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/bzip2/move_to_front.go) -

func NewReader +

func NewReader

func NewReader(r io.Reader) io.Reader
@@ -24,14 +24,14 @@ NewReader returns an io.Reader which decompresses bzip2 data from r. If r does not also implement io.ByteReader, the decompressor may read more data than necessary from r. -

type StructuralError +

type StructuralError

type StructuralError string
A StructuralError is returned when the bzip2 data is found to be syntactically invalid. -

func (StructuralError) Error +

func (StructuralError) Error

func (s StructuralError) Error() string
diff --git a/Source/compress/flate/flate.md b/Source/compress/flate/flate.md index e60f67f..33aca41 100644 --- a/Source/compress/flate/flate.md +++ b/Source/compress/flate/flate.md @@ -263,7 +263,7 @@ Example: - [Package (Synchronization)](#example_synchronization) ### Package files - [deflate.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/flate/deflate.go) [deflatefast.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/flate/deflatefast.go) [dict_decoder.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/flate/dict_decoder.go) [huffman_bit_writer.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/flate/huffman_bit_writer.go) [huffman_code.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/flate/huffman_code.go) [inflate.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/flate/inflate.go) [token.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/flate/token.go) + [deflate.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/flate/deflate.go) [deflatefast.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/flate/deflatefast.go) [dict_decoder.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/flate/dict_decoder.go) [huffman_bit_writer.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/flate/huffman_bit_writer.go) [huffman_code.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/flate/huffman_code.go) [inflate.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/flate/inflate.go) [token.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/flate/token.go)

Constants

@@ -286,7 +286,7 @@ Example: )
-

func NewReader +

func NewReader

func NewReader(r io.Reader) io.ReadCloser
@@ -297,7 +297,7 @@ Close on the ReadCloser when finished reading. The ReadCloser returned by NewReader also implements Resetter. -

func NewReaderDict +

func NewReaderDict

func NewReaderDict(r io.Reader, dict []byte) io.ReadCloser
@@ -308,29 +308,29 @@ typically used to read data compressed by NewWriterDict. The ReadCloser returned by NewReader also implements Resetter. -

type CorruptInputError +

type CorruptInputError

type CorruptInputError int64
A CorruptInputError reports the presence of corrupt input at a given offset. -

func (CorruptInputError) Error +

func (CorruptInputError) Error

func (e CorruptInputError) Error() string
-

type InternalError +

type InternalError

type InternalError string
An InternalError reports an error in the flate code itself. -

func (InternalError) Error +

func (InternalError) Error

func (e InternalError) Error() string
-

type ReadError +

type ReadError

type ReadError struct {
     Offset int64 // byte offset where error occurred
@@ -341,12 +341,12 @@ A ReadError reports an error encountered while reading input.
 
 Deprecated: No longer returned.
 
-

func (*ReadError) Error +

func (*ReadError) Error

func (e *ReadError) Error() string
-

type Reader +

type Reader

type Reader interface {
     io.Reader
@@ -356,7 +356,7 @@ Deprecated: No longer returned.
 The actual read interface needed by NewReader. If the passed in io.Reader does
 not also have ReadByte, the NewReader will introduce its own buffering.
 
-

type Resetter +

type Resetter

type Resetter interface {
     // Reset discards any buffered data and resets the Resetter as if it was
@@ -368,7 +368,7 @@ Resetter resets a ReadCloser returned by NewReader or NewReaderDict to to switch
 to a new underlying Reader. This permits reusing a ReadCloser instead of
 allocating a new one.
 
-

type WriteError +

type WriteError

type WriteError struct {
     Offset int64 // byte offset where error occurred
@@ -379,12 +379,12 @@ A WriteError reports an error encountered while writing output.
 
 Deprecated: No longer returned.
 
-

func (*WriteError) Error +

func (*WriteError) Error

func (e *WriteError) Error() string
-

type Writer +

type Writer

type Writer struct {
     // contains filtered or unexported fields
@@ -393,7 +393,7 @@ Deprecated: No longer returned.
 A Writer takes data written to it and writes the compressed form of that data to
 an underlying writer (see NewWriter).
 
-

func NewWriter +

func NewWriter

func NewWriter(w io.Writer, level int) (*Writer, error)
@@ -408,7 +408,7 @@ of input, but sacrificing considerable compression efficiency. If level is in the range [-2, 9] then the error returned will be nil. Otherwise the error returned will be non-nil. -

func NewWriterDict +

func NewWriterDict

func NewWriterDict(w io.Writer, level int, dict []byte) (*Writer, error)
@@ -417,13 +417,13 @@ dictionary. The returned Writer behaves as if the dictionary had been written to it without producing any compressed output. The compressed data written to w can only be decompressed by a Reader initialized with the same dictionary. -

func (*Writer) Close +

func (*Writer) Close

func (w *Writer) Close() error
Close flushes and closes the writer. -

func (*Writer) Flush +

func (*Writer) Flush

func (w *Writer) Flush() error
@@ -436,14 +436,14 @@ Flush returns that error. In the terminology of the zlib library, Flush is equivalent to Z_SYNC_FLUSH. -

func (*Writer) Reset +

func (*Writer) Reset

func (w *Writer) Reset(dst io.Writer)
Reset discards the writer's state and makes it equivalent to the result of NewWriter or NewWriterDict called with dst and w's level and dictionary. -

func (*Writer) Write +

func (*Writer) Write

func (w *Writer) Write(data []byte) (n int, err error)
diff --git a/Source/compress/gzip/gzip.md b/Source/compress/gzip/gzip.md index 62d5c74..e448882 100644 --- a/Source/compress/gzip/gzip.md +++ b/Source/compress/gzip/gzip.md @@ -75,7 +75,7 @@ Example: - [Package (WriterReader)](#example_writerReader) ### Package files - [gunzip.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/gzip/gunzip.go) [gzip.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/gzip/gzip.go) + [gunzip.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/gzip/gunzip.go) [gzip.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/gzip/gzip.go)

Constants

@@ -100,7 +100,7 @@ These constants are copied from the flate package, so that code that imports )
-
type Header struct {
     Comment string    // comment
@@ -116,7 +116,7 @@ header is exposed as the fields of the Writer and Reader structs.
 Strings must be UTF-8 encoded and may only contain Unicode code points U+0001
 through U+00FF, due to limitations of the GZIP file format.
 
-

type Reader +

type Reader

type Reader struct {
     Header // valid after NewReader or Reader.Reset
@@ -136,7 +136,7 @@ does not have the expected length or checksum. Clients should treat data
 returned by Read as tentative until they receive the io.EOF marking the end of
 the data.
 
-

func NewReader +

func NewReader

func NewReader(r io.Reader) (*Reader, error)
@@ -148,7 +148,7 @@ It is the caller's responsibility to call Close on the Reader when done. The Reader.Header fields will be valid in the Reader returned. -

func (*Reader) Close +

func (*Reader) Close

func (z *Reader) Close() error
@@ -156,7 +156,7 @@ Close closes the Reader. It does not close the underlying io.Reader. In order for the GZIP checksum to be verified, the reader must be fully consumed until the io.EOF. -

func (*Reader) Multistream +

func (*Reader) Multistream

func (z *Reader) Multistream(ok bool)
@@ -249,14 +249,14 @@ Example: // // Hello Gophers - 2 -

func (*Reader) Read +

func (*Reader) Read

func (z *Reader) Read(p []byte) (n int, err error)
Read implements io.Reader, reading uncompressed bytes from its underlying Reader. -

func (*Reader) Reset +

func (*Reader) Reset

func (z *Reader) Reset(r io.Reader) error
@@ -264,7 +264,7 @@ Reset discards the Reader z's state and makes it equivalent to the result of its original state from NewReader, but reading from r instead. This permits reusing a Reader rather than allocating a new one. -

type Writer +

type Writer

type Writer struct {
     Header // written at first call to Write, Flush, or Close
@@ -274,7 +274,7 @@ a Reader rather than allocating a new one.
 A Writer is an io.WriteCloser. Writes to a Writer are compressed and written to
 w.
 
-

func NewWriter +

func NewWriter

func NewWriter(w io.Writer) *Writer
@@ -287,7 +287,7 @@ Writes may be buffered and not flushed until Close. Callers that wish to set the fields in Writer.Header must do so before the first call to Write, Flush, or Close. -

func NewWriterLevel +

func NewWriterLevel

func NewWriterLevel(w io.Writer, level int) (*Writer, error)
@@ -298,7 +298,7 @@ The compression level can be DefaultCompression, NoCompression, HuffmanOnly or any integer value between BestSpeed and BestCompression inclusive. The error returned will be nil if the level is valid. -

func (*Writer) Close +

func (*Writer) Close

func (z *Writer) Close() error
@@ -306,7 +306,7 @@ Close closes the Writer by flushing any unwritten data to the underlying io.Writer and writing the GZIP footer. It does not close the underlying io.Writer. -

func (*Writer) Flush +

func (*Writer) Flush

func (z *Writer) Flush() error
@@ -319,7 +319,7 @@ that error. In the terminology of the zlib library, Flush is equivalent to Z_SYNC_FLUSH. -

func (*Writer) Reset +

func (*Writer) Reset

func (z *Writer) Reset(w io.Writer)
@@ -327,7 +327,7 @@ Reset discards the Writer z's state and makes it equivalent to the result of its original state from NewWriter or NewWriterLevel, but writing to w instead. This permits reusing a Writer rather than allocating a new one. -

func (*Writer) Write +

func (*Writer) Write

func (z *Writer) Write(p []byte) (int, error)
diff --git a/Source/compress/lzw/lzw.md b/Source/compress/lzw/lzw.md index 933bea9..288388f 100644 --- a/Source/compress/lzw/lzw.md +++ b/Source/compress/lzw/lzw.md @@ -23,9 +23,9 @@ algorithm. See the golang.org/x/image/tiff/lzw package for an implementation. - [type Order](#Order) ### Package files - [reader.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/lzw/reader.go) [writer.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/lzw/writer.go) + [reader.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/lzw/reader.go) [writer.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/lzw/writer.go) -

func NewReader +

func NewReader

func NewReader(r io.Reader, order Order, litWidth int) io.ReadCloser
@@ -36,7 +36,7 @@ responsibility to call Close on the ReadCloser when finished reading. The number of bits to use for literal codes, litWidth, must be in the range [2,8] and is typically 8. It must equal the litWidth used during compression. -

func NewWriter +

func NewWriter

func NewWriter(w io.Writer, order Order, litWidth int) io.WriteCloser
@@ -46,7 +46,7 @@ on the WriteCloser when finished writing. The number of bits to use for literal codes, litWidth, must be in the range [2,8] and is typically 8. Input bytes must be less than 1<type Order +

type Order

type Order int
diff --git a/Source/compress/zlib/zlib.md b/Source/compress/zlib/zlib.md index ea4397c..519763d 100644 --- a/Source/compress/zlib/zlib.md +++ b/Source/compress/zlib/zlib.md @@ -44,7 +44,7 @@ and to read that data back: - [NewWriter](#exampleNewWriter) ### Package files - [reader.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/zlib/reader.go) [writer.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/compress/zlib/writer.go) + [reader.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/zlib/reader.go) [writer.go](//github.com/golang/go/blob/release-branch.go1.10/src/compress/zlib/writer.go)

Constants

@@ -71,7 +71,7 @@ These constants are copied from the flate package, so that code that imports )
-

func NewReader +

func NewReader

func NewReader(r io.Reader) (io.ReadCloser, error)
@@ -97,7 +97,7 @@ Example: // Output: hello, world r.Close() -

func NewReaderDict +

func NewReaderDict

func NewReaderDict(r io.Reader, dict []byte) (io.ReadCloser, error)
@@ -108,7 +108,7 @@ ErrDictionary. The ReadCloser returned by NewReaderDict also implements Resetter. -

type Resetter +

type Resetter

type Resetter interface {
     // Reset discards any buffered data and resets the Resetter as if it was
@@ -120,7 +120,7 @@ Resetter resets a ReadCloser returned by NewReader or NewReaderDict to to switch
 to a new underlying Reader. This permits reusing a ReadCloser instead of
 allocating a new one.
 
-

type Writer +

type Writer

type Writer struct {
     // contains filtered or unexported fields
@@ -129,7 +129,7 @@ allocating a new one.
 A Writer takes data written to it and writes the compressed form of that data to
 an underlying writer (see NewWriter).
 
-

func NewWriter +

func NewWriter

func NewWriter(w io.Writer) *Writer
@@ -150,7 +150,7 @@ Example: fmt.Println(b.Bytes()) // Output: [120 156 202 72 205 201 201 215 81 40 207 47 202 73 225 2 4 0 0 255 255 33 231 4 147] -

func NewWriterLevel +

func NewWriterLevel

func NewWriterLevel(w io.Writer, level int) (*Writer, error)
@@ -161,7 +161,7 @@ The compression level can be DefaultCompression, NoCompression, HuffmanOnly or any integer value between BestSpeed and BestCompression inclusive. The error returned will be nil if the level is valid. -

func NewWriterLevelDict +

func NewWriterLevelDict

func NewWriterLevelDict(w io.Writer, level int, dict []byte) (*Writer, error)
@@ -171,27 +171,27 @@ with. The dictionary may be nil. If not, its contents should not be modified until the Writer is closed. -

func (*Writer) Close +

func (*Writer) Close

func (z *Writer) Close() error
Close closes the Writer, flushing any unwritten data to the underlying io.Writer, but does not close the underlying io.Writer. -

func (*Writer) Flush +

func (*Writer) Flush

func (z *Writer) Flush() error
Flush flushes the Writer to its underlying io.Writer. -

func (*Writer) Reset +

func (*Writer) Reset

func (z *Writer) Reset(w io.Writer)
Reset clears the state of the Writer z such that it is equivalent to its initial state from NewWriterLevel or NewWriterLevelDict, but instead writing to w. -

func (*Writer) Write +

func (*Writer) Write

func (z *Writer) Write(p []byte) (n int, err error)
diff --git a/Source/container/heap/heap.md b/Source/container/heap/heap.md index 3bb12fe..6713a01 100644 --- a/Source/container/heap/heap.md +++ b/Source/container/heap/heap.md @@ -177,9 +177,9 @@ Example: - [Package (PriorityQueue)](#example_priorityQueue) ### Package files - [heap.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/container/heap/heap.go) + [heap.go](//github.com/golang/go/blob/release-branch.go1.10/src/container/heap/heap.go) -

func Fix +

func Fix

func Fix(h Interface, i int)
@@ -188,7 +188,7 @@ its value. Changing the value of the element at index i and then calling Fix is equivalent to, but less expensive than, calling Remove(h, i) followed by a Push of the new value. The complexity is O(log(n)) where n = h.Len(). -

func Init +

func Init

func Init(h Interface)
@@ -197,7 +197,7 @@ is idempotent with respect to the heap invariants and may be called whenever the heap invariants may have been invalidated. Its complexity is O(n) where n = h.Len(). -

func Pop +

func Pop

func Pop(h Interface) interface{}
@@ -205,21 +205,21 @@ Pop removes the minimum element (according to Less) from the heap and returns it. The complexity is O(log(n)) where n = h.Len(). It is equivalent to Remove(h, 0). -

func Push +

func Push

func Push(h Interface, x interface{})
Push pushes the element x onto the heap. The complexity is O(log(n)) where n = h.Len(). -

func Remove +

func Remove

func Remove(h Interface, i int) interface{}
Remove removes the element at index i from the heap. The complexity is O(log(n)) where n = h.Len(). -

type Interface +

type Interface

type Interface interface {
     sort.Interface
diff --git a/Source/container/list/list.md b/Source/container/list/list.md
index de1e73c..5f16efb 100644
--- a/Source/container/list/list.md
+++ b/Source/container/list/list.md
@@ -62,9 +62,9 @@ Example:
 - [Package](#example)
 
 ### Package files
- [list.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/container/list/list.go)
+ [list.go](//github.com/golang/go/blob/release-branch.go1.10/src/container/list/list.go)
 
-

type Element +

type Element

type Element struct {
 
@@ -75,19 +75,19 @@ Example:
 
 Element is an element of a linked list.
 
-

func (*Element) Next +

func (*Element) Next

func (e *Element) Next() *Element
Next returns the next list element or nil. -

func (*Element) Prev +

func (*Element) Prev

func (e *Element) Prev() *Element
Prev returns the previous list element or nil. -

type List +

type List

type List struct {
     // contains filtered or unexported fields
@@ -96,31 +96,31 @@ Prev returns the previous list element or nil.
 List represents a doubly linked list. The zero value for List is an empty list
 ready to use.
 
-

func New +

func New

func New() *List
New returns an initialized list. -

func (*List) Back +

func (*List) Back

func (l *List) Back() *Element
Back returns the last element of list l or nil if the list is empty. -

func (*List) Front +

func (*List) Front

func (l *List) Front() *Element
Front returns the first element of list l or nil if the list is empty. -

func (*List) Init +

func (*List) Init

func (l *List) Init() *List
Init initializes or clears list l. -

func (*List) InsertAfter +

func (*List) InsertAfter

func (l *List) InsertAfter(v interface{}, mark *Element) *Element
@@ -128,7 +128,7 @@ InsertAfter inserts a new element e with value v immediately after mark and returns e. If mark is not an element of l, the list is not modified. The mark must not be nil. -

func (*List) InsertBefore +

func (*List) InsertBefore

func (l *List) InsertBefore(v interface{}, mark *Element) *Element
@@ -136,13 +136,13 @@ InsertBefore inserts a new element e with value v immediately before mark and returns e. If mark is not an element of l, the list is not modified. The mark must not be nil. -

func (*List) Len +

func (*List) Len

func (l *List) Len() int
Len returns the number of elements of list l. The complexity is O(1). -

func (*List) MoveAfter +

func (*List) MoveAfter

func (l *List) MoveAfter(e, mark *Element)
@@ -150,7 +150,7 @@ MoveAfter moves element e to its new position after mark. If e or mark is not an element of l, or e == mark, the list is not modified. The element and mark must not be nil. -

func (*List) MoveBefore +

func (*List) MoveBefore

func (l *List) MoveBefore(e, mark *Element)
@@ -158,49 +158,49 @@ MoveBefore moves element e to its new position before mark. If e or mark is not an element of l, or e == mark, the list is not modified. The element and mark must not be nil. -

func (*List) MoveToBack +

func (*List) MoveToBack

func (l *List) MoveToBack(e *Element)
MoveToBack moves element e to the back of list l. If e is not an element of l, the list is not modified. The element must not be nil. -

func (*List) MoveToFront +

func (*List) MoveToFront

func (l *List) MoveToFront(e *Element)
MoveToFront moves element e to the front of list l. If e is not an element of l, the list is not modified. The element must not be nil. -

func (*List) PushBack +

func (*List) PushBack

func (l *List) PushBack(v interface{}) *Element
PushBack inserts a new element e with value v at the back of list l and returns e. -

func (*List) PushBackList +

func (*List) PushBackList

func (l *List) PushBackList(other *List)
PushBackList inserts a copy of an other list at the back of list l. The lists l and other may be the same. They must not be nil. -

func (*List) PushFront +

func (*List) PushFront

func (l *List) PushFront(v interface{}) *Element
PushFront inserts a new element e with value v at the front of list l and returns e. -

func (*List) PushFrontList +

func (*List) PushFrontList

func (l *List) PushFrontList(other *List)
PushFrontList inserts a copy of an other list at the front of list l. The lists l and other may be the same. They must not be nil. -

func (*List) Remove +

func (*List) Remove

func (l *List) Remove(e *Element) interface{}
diff --git a/Source/container/ring/ring.md b/Source/container/ring/ring.md index 8bbd7b4..8f94dfb 100644 --- a/Source/container/ring/ring.md +++ b/Source/container/ring/ring.md @@ -30,9 +30,9 @@ Package ring implements operations on circular lists. - [Ring.Unlink](#exampleRing_Unlink) ### Package files - [ring.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/container/ring/ring.go) + [ring.go](//github.com/golang/go/blob/release-branch.go1.10/src/container/ring/ring.go) -

type Ring +

type Ring

type Ring struct {
     Value interface{} // for use by client; untouched by this library
@@ -44,13 +44,13 @@ or end; a pointer to any ring element serves as reference to the entire ring.
 Empty rings are represented as nil Ring pointers. The zero value for a Ring is a
 one-element ring with a nil Value.
 
-

func New +

func New

func New(n int) *Ring
New creates a ring of n elements. -

func (*Ring) Do +

func (*Ring) Do

func (r *Ring) Do(f func(interface{}))
@@ -84,7 +84,7 @@ Example: // 3 // 4 -

func (*Ring) Len +

func (*Ring) Len

func (r *Ring) Len() int
@@ -103,7 +103,7 @@ Example: // Output: // 4 -
func (r *Ring) Link(s *Ring) *Ring
@@ -156,7 +156,7 @@ Example: // 1 // 1 -

func (*Ring) Move +

func (*Ring) Move

func (r *Ring) Move(n int) *Ring
@@ -193,7 +193,7 @@ Example: // 1 // 2 -

func (*Ring) Next +

func (*Ring) Next

func (r *Ring) Next() *Ring
@@ -227,7 +227,7 @@ Example: // 3 // 4 -

func (*Ring) Prev +

func (*Ring) Prev

func (r *Ring) Prev() *Ring
@@ -261,7 +261,7 @@ Example: // 1 // 0 -
func (r *Ring) Unlink(n int) *Ring
diff --git a/Source/context/context.md b/Source/context/context.md index d61d153..5229615 100644 --- a/Source/context/context.md +++ b/Source/context/context.md @@ -66,7 +66,7 @@ Contexts. - [WithValue](#exampleWithValue) ### Package files - [context.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/context/context.go) + [context.go](//github.com/golang/go/blob/release-branch.go1.10/src/context/context.go)

Variables

@@ -79,7 +79,7 @@ Canceled is the error returned by Context.Err when the context is canceled. DeadlineExceeded is the error returned by Context.Err when the context's deadline passes. -

type CancelFunc +

type CancelFunc

type CancelFunc func()
@@ -87,7 +87,7 @@ A CancelFunc tells an operation to abandon its work. A CancelFunc does not wait for the work to stop. After the first call, subsequent calls to a CancelFunc do nothing. -

type Context +

type Context

type Context interface {
     // Deadline returns the time when work done on behalf of this context
@@ -186,7 +186,7 @@ boundaries.
 
 Context's methods may be called by multiple goroutines simultaneously.
 
-

func Background +

func Background

func Background() Context
@@ -194,7 +194,7 @@ Background returns a non-nil, empty Context. It is never canceled, has no values, and has no deadline. It is typically used by the main function, initialization, and tests, and as the top-level Context for incoming requests. -

func TODO +

func TODO

func TODO() Context
@@ -204,7 +204,7 @@ function has not yet been extended to accept a Context parameter). TODO is recognized by static analysis tools that determine whether Contexts are propagated correctly in a program. -

func WithCancel +

func WithCancel

func WithCancel(parent Context) (ctx Context, cancel CancelFunc)
@@ -255,7 +255,7 @@ Example: // 4 // 5 -

func WithDeadline +

func WithDeadline

func WithDeadline(parent Context, d time.Time) (Context, CancelFunc)
@@ -290,7 +290,7 @@ Example: // Output: // context deadline exceeded -

func WithTimeout +

func WithTimeout

func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc)
@@ -323,7 +323,7 @@ Example: // Output: // context deadline exceeded -

func WithValue +

func WithValue

func WithValue(parent Context, key, val interface{}) Context
diff --git a/Source/crypto/aes/aes.md b/Source/crypto/aes/aes.md index 11974c6..5e406fb 100644 --- a/Source/crypto/aes/aes.md +++ b/Source/crypto/aes/aes.md @@ -24,7 +24,7 @@ constant-time. - [func (k KeySizeError) Error() string](#KeySizeError.Error) ### Package files - [aes_gcm.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/aes/aes_gcm.go) [block.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/aes/block.go) [cipher.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/aes/cipher.go) [cipher_amd64.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/aes/cipher_amd64.go) [const.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/aes/const.go) [modes.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/aes/modes.go) + [aes_gcm.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/aes/aes_gcm.go) [block.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/aes/block.go) [cipher.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/aes/cipher.go) [cipher_amd64.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/aes/cipher_amd64.go) [const.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/aes/const.go) [modes.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/aes/modes.go)

Constants

@@ -32,19 +32,19 @@ constant-time. The AES block size in bytes. -

func NewCipher +

func NewCipher

func NewCipher(key []byte) (cipher.Block, error)
NewCipher creates and returns a new cipher.Block. The key argument should be the AES key, either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256. -

type KeySizeError +

type KeySizeError

type KeySizeError int
-

func (KeySizeError) Error +

func (KeySizeError) Error

func (k KeySizeError) Error() string
diff --git a/Source/crypto/cipher/cipher.md b/Source/crypto/cipher/cipher.md index 10d3278..612f8b9 100644 --- a/Source/crypto/cipher/cipher.md +++ b/Source/crypto/cipher/cipher.md @@ -44,9 +44,9 @@ Publication 800-38A. - [StreamWriter](#exampleStreamWriter) ### Package files - [cbc.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/cipher/cbc.go) [cfb.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/cipher/cfb.go) [cipher.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/cipher/cipher.go) [ctr.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/cipher/ctr.go) [gcm.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/cipher/gcm.go) [io.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/cipher/io.go) [ofb.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/cipher/ofb.go) [xor.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/cipher/xor.go) + [cbc.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/cipher/cbc.go) [cfb.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/cipher/cfb.go) [cipher.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/cipher/cipher.go) [ctr.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/cipher/ctr.go) [gcm.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/cipher/gcm.go) [io.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/cipher/io.go) [ofb.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/cipher/ofb.go) [xor.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/cipher/xor.go) -

type AEAD +

type AEAD

type AEAD interface {
     // NonceSize returns the size of the nonce that must be passed to Seal
@@ -85,7 +85,7 @@ For a description of the methodology, see
 
     https://en.wikipedia.org/wiki/Authenticated_encryption
 
-

func NewGCM +

func NewGCM

func NewGCM(cipher Block) (AEAD, error)
@@ -158,7 +158,7 @@ Example: ciphertext := aesgcm.Seal(nil, nonce, plaintext, nil) fmt.Printf("%x\n", ciphertext) -

func NewGCMWithNonceSize +

func NewGCMWithNonceSize

func NewGCMWithNonceSize(cipher Block, size int) (AEAD, error)
@@ -169,7 +169,7 @@ Only use this function if you require compatibility with an existing cryptosystem that uses non-standard nonce lengths. All other users should use NewGCM, which is faster and more resistant to misuse. -

type Block +

type Block

type Block interface {
     // BlockSize returns the cipher's block size.
@@ -188,7 +188,7 @@ A Block represents an implementation of block cipher using a given key. It
 provides the capability to encrypt or decrypt individual blocks. The mode
 implementations extend that capability to streams of blocks.
 
-

type BlockMode +

type BlockMode

type BlockMode interface {
     // BlockSize returns the mode's block size.
@@ -211,7 +211,7 @@ implementations extend that capability to streams of blocks.
 A BlockMode represents a block cipher running in a block-based mode (CBC, ECB
 etc).
 
-

func NewCBCDecrypter +

func NewCBCDecrypter

func NewCBCDecrypter(b Block, iv []byte) BlockMode
@@ -263,7 +263,7 @@ Example: fmt.Printf("%s\n", ciphertext) // Output: exampleplaintext -

func NewCBCEncrypter +

func NewCBCEncrypter

func NewCBCEncrypter(b Block, iv []byte) BlockMode
@@ -311,7 +311,7 @@ Example: fmt.Printf("%x\n", ciphertext) -

type Stream +

type Stream

type Stream interface {
     // XORKeyStream XORs each byte in the given slice with a byte from the
@@ -329,7 +329,7 @@ Example:
 
 A Stream represents a stream cipher.
 
-

func NewCFBDecrypter +

func NewCFBDecrypter

func NewCFBDecrypter(block Block, iv []byte) Stream
@@ -366,7 +366,7 @@ Example: fmt.Printf("%s", ciphertext) // Output: some plaintext -

func NewCFBEncrypter +

func NewCFBEncrypter

func NewCFBEncrypter(block Block, iv []byte) Stream
@@ -404,7 +404,7 @@ Example: // be secure. fmt.Printf("%x\n", ciphertext) -

func NewCTR +

func NewCTR

func NewCTR(block Block, iv []byte) Stream
@@ -451,7 +451,7 @@ Example: fmt.Printf("%s\n", plaintext2) // Output: some plaintext -

func NewOFB +

func NewOFB

func NewOFB(b Block, iv []byte) Stream
@@ -499,7 +499,7 @@ Example: fmt.Printf("%s\n", plaintext2) // Output: some plaintext -

type StreamReader +

type StreamReader

type StreamReader struct {
     S Stream
@@ -551,12 +551,12 @@ Example:
     // StreamReader in this manner, an attacker could flip arbitrary bits in
     // the output.
 
-

func (StreamReader) Read +

func (StreamReader) Read

func (r StreamReader) Read(dst []byte) (n int, err error)
-

type StreamWriter +

type StreamWriter

type StreamWriter struct {
     S   Stream
@@ -611,14 +611,14 @@ Example:
     // StreamReader in this manner, an attacker could flip arbitrary bits in
     // the decrypted result.
 
-

func (StreamWriter) Close +

func (StreamWriter) Close

func (w StreamWriter) Close() error
Close closes the underlying Writer and returns its Close return value, if the Writer is also an io.Closer. Otherwise it returns nil. -

func (StreamWriter) Write +

func (StreamWriter) Write

func (w StreamWriter) Write(src []byte) (n int, err error)
diff --git a/Source/crypto/crypto.md b/Source/crypto/crypto.md index 57c2a76..0e8518f 100644 --- a/Source/crypto/crypto.md +++ b/Source/crypto/crypto.md @@ -23,9 +23,9 @@ Package crypto collects common cryptographic constants. - [type SignerOpts](#SignerOpts) ### Package files - [crypto.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/crypto.go) + [crypto.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/crypto.go) -

func RegisterHash +

func RegisterHash

func RegisterHash(h Hash, f func() hash.Hash)
@@ -33,7 +33,7 @@ RegisterHash registers a function that returns a new instance of the given hash function. This is intended to be called from the init function in packages that implement hash functions. -

type Decrypter +

type Decrypter

type Decrypter interface {
     // Public returns the public key corresponding to the opaque,
@@ -50,12 +50,12 @@ Decrypter is an interface for an opaque private key that can be used for
 asymmetric decryption operations. An example would be an RSA key kept in a
 hardware module.
 
-

type DecrypterOpts +

type DecrypterOpts

type DecrypterOpts interface{}
-

type Hash +

type Hash

type Hash uint
@@ -86,26 +86,26 @@ package. )
-

func (Hash) Available +

func (Hash) Available

func (h Hash) Available() bool
Available reports whether the given hash function is linked into the binary. -

func (Hash) HashFunc +

func (Hash) HashFunc

func (h Hash) HashFunc() Hash
HashFunc simply returns the value of h so that Hash implements SignerOpts. -

func (Hash) New +

func (Hash) New

func (h Hash) New() hash.Hash
New returns a new hash.Hash calculating the given hash function. New panics if the hash function is not linked into the binary. -

func (Hash) Size +

func (Hash) Size

func (h Hash) Size() int
@@ -113,19 +113,19 @@ Size returns the length, in bytes, of a digest resulting from the given hash function. It doesn't require that the hash function in question be linked into the program. -

type PrivateKey +

type PrivateKey

type PrivateKey interface{}
PrivateKey represents a private key using an unspecified algorithm. -

type PublicKey +

type PublicKey

type PublicKey interface{}
PublicKey represents a public key using an unspecified algorithm. -

type Signer +

type Signer

type Signer interface {
     // Public returns the public key corresponding to the opaque,
@@ -151,7 +151,7 @@ PublicKey represents a public key using an unspecified algorithm.
 Signer is an interface for an opaque private key that can be used for signing
 operations. For example, an RSA key kept in a hardware module.
 
-

type SignerOpts +

type SignerOpts

type SignerOpts interface {
     // HashFunc returns an identifier for the hash function used to produce
diff --git a/Source/crypto/des/des.md b/Source/crypto/des/des.md
index da22d5f..3f7e9b7 100644
--- a/Source/crypto/des/des.md
+++ b/Source/crypto/des/des.md
@@ -24,7 +24,7 @@ DES is cryptographically broken and should not be used for secure applications.
 - [NewTripleDESCipher](#exampleNewTripleDESCipher)
 
 ### Package files
- [block.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/des/block.go) [cipher.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/des/cipher.go) [const.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/des/const.go)
+ [block.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/des/block.go) [cipher.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/des/cipher.go) [const.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/des/const.go)
 
 

Constants

@@ -32,13 +32,13 @@ DES is cryptographically broken and should not be used for secure applications. The DES block size in bytes. -

func NewCipher +

func NewCipher

func NewCipher(key []byte) (cipher.Block, error)
NewCipher creates and returns a new cipher.Block. -

func NewTripleDESCipher +

func NewTripleDESCipher

func NewTripleDESCipher(key []byte) (cipher.Block, error)
@@ -63,12 +63,12 @@ Example: // See crypto/cipher for how to use a cipher.Block for encryption and // decryption. -

type KeySizeError +

type KeySizeError

type KeySizeError int
-

func (KeySizeError) Error +

func (KeySizeError) Error

func (k KeySizeError) Error() string
diff --git a/Source/crypto/dsa/dsa.md b/Source/crypto/dsa/dsa.md index 7896d1d..5257706 100644 --- a/Source/crypto/dsa/dsa.md +++ b/Source/crypto/dsa/dsa.md @@ -24,7 +24,7 @@ algorithms. - [type PublicKey](#PublicKey) ### Package files - [dsa.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/dsa/dsa.go) + [dsa.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/dsa/dsa.go)

Variables

@@ -35,21 +35,21 @@ is quite strict about the format of DSA keys, but other code may be less so. Thus, when using keys which may have been generated by other code, this error must be handled. -

func GenerateKey +

func GenerateKey

func GenerateKey(priv *PrivateKey, rand io.Reader) error
GenerateKey generates a public&private key pair. The Parameters of the PrivateKey must already be valid (see GenerateParameters). -

func GenerateParameters +

func GenerateParameters

func GenerateParameters(params *Parameters, rand io.Reader, sizes ParameterSizes) error
GenerateParameters puts a random, valid set of DSA parameters into params. This function can take many seconds, even on fast machines. -

func Sign +

func Sign

func Sign(rand io.Reader, priv *PrivateKey, hash []byte) (r, s *big.Int, err error)
@@ -64,7 +64,7 @@ itself. Be aware that calling Sign with an attacker-controlled PrivateKey may require an arbitrary amount of CPU. -

func Verify +

func Verify

func Verify(pub *PublicKey, hash []byte, r, s *big.Int) bool
@@ -75,7 +75,7 @@ Note that FIPS 186-3 section 4.6 specifies that the hash should be truncated to the byte-length of the subgroup. This function does not perform that truncation itself. -

type ParameterSizes +

type ParameterSizes

type ParameterSizes int
@@ -90,7 +90,7 @@ a set of DSA parameters. See FIPS 186-3, section 4.2. )
-

type Parameters +

type Parameters

type Parameters struct {
     P, Q, G *big.Int
@@ -99,7 +99,7 @@ a set of DSA parameters. See FIPS 186-3, section 4.2.
 Parameters represents the domain parameters for a key. These parameters can be
 shared across many keys. The bit length of Q must be a multiple of 8.
 
-

type PrivateKey +

type PrivateKey

type PrivateKey struct {
     PublicKey
@@ -108,7 +108,7 @@ shared across many keys. The bit length of Q must be a multiple of 8.
 
 PrivateKey represents a DSA private key.
 
-

type PublicKey +

type PublicKey

type PublicKey struct {
     Parameters
diff --git a/Source/crypto/ecdsa/ecdsa.md b/Source/crypto/ecdsa/ecdsa.md
index a5a0160..c44c4ee 100644
--- a/Source/crypto/ecdsa/ecdsa.md
+++ b/Source/crypto/ecdsa/ecdsa.md
@@ -23,9 +23,9 @@ result of Coron; the AES-CTR stream is IRO under standard assumptions.
 - [type PublicKey](#PublicKey)
 
 ### Package files
- [ecdsa.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/ecdsa/ecdsa.go)
+ [ecdsa.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/ecdsa/ecdsa.go)
 
-

func Sign +

func Sign

func Sign(rand io.Reader, priv *PrivateKey, hash []byte) (r, s *big.Int, err error)
@@ -35,14 +35,14 @@ key's curve order, the hash will be truncated to that length. It returns the signature as a pair of integers. The security of the private key depends on the entropy of rand. -

func Verify +

func Verify

func Verify(pub *PublicKey, hash []byte, r, s *big.Int) bool
Verify verifies the signature in r, s of hash using the public key, pub. Its return value records whether the signature is valid. -

type PrivateKey +

type PrivateKey

type PrivateKey struct {
     PublicKey
@@ -51,19 +51,19 @@ return value records whether the signature is valid.
 
 PrivateKey represents an ECDSA private key.
 
-

func GenerateKey +

func GenerateKey

func GenerateKey(c elliptic.Curve, rand io.Reader) (*PrivateKey, error)
GenerateKey generates a public and private key pair. -

func (*PrivateKey) Public +

func (*PrivateKey) Public

func (priv *PrivateKey) Public() crypto.PublicKey
Public returns the public key corresponding to priv. -

func (*PrivateKey) Sign +

func (*PrivateKey) Sign

func (priv *PrivateKey) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)
@@ -75,7 +75,7 @@ This method implements crypto.Signer, which is an interface to support keys where the private part is kept in, for example, a hardware module. Common uses should use the Sign function in this package directly. -

type PublicKey +

type PublicKey

type PublicKey struct {
     elliptic.Curve
diff --git a/Source/crypto/elliptic/elliptic.md b/Source/crypto/elliptic/elliptic.md
index fc43b9b..7ad0d92 100644
--- a/Source/crypto/elliptic/elliptic.md
+++ b/Source/crypto/elliptic/elliptic.md
@@ -26,23 +26,23 @@ Package elliptic implements several standard elliptic curves over prime fields.
   - [func (curve *CurveParams) ScalarMult(Bx, By *big.Int, k []byte) (*big.Int, *big.Int)](#CurveParams.ScalarMult)
 
 ### Package files
- [elliptic.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/elliptic/elliptic.go) [p224.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/elliptic/p224.go) [p256_amd64.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/elliptic/p256_amd64.go)
+ [elliptic.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/elliptic/elliptic.go) [p224.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/elliptic/p224.go) [p256_amd64.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/elliptic/p256_amd64.go)
 
-

func GenerateKey +

func GenerateKey

func GenerateKey(curve Curve, rand io.Reader) (priv []byte, x, y *big.Int, err error)
GenerateKey returns a public/private key pair. The private key is generated using the given reader, which must return random data. -

func Marshal +

func Marshal

func Marshal(curve Curve, x, y *big.Int) []byte
Marshal converts a point into the uncompressed form specified in section 4.3.6 of ANSI X9.62. -

func Unmarshal +

func Unmarshal

func Unmarshal(curve Curve, data []byte) (x, y *big.Int)
@@ -50,7 +50,7 @@ Unmarshal converts a point, serialized by Marshal, into an x, y pair. It is an error if the point is not in uncompressed form or is not on the curve. On error, x = nil. -

type Curve +

type Curve

type Curve interface {
     // Params returns the parameters for the curve.
@@ -71,7 +71,7 @@ x = nil.
 A Curve represents a short-form Weierstrass curve with a=-3. See
 http://www.hyperelliptic.org/EFD/g1p/auto-shortw.html
 
-

func P224 +

func P224

func P224() Curve
@@ -79,7 +79,7 @@ P224 returns a Curve which implements P-224 (see FIPS 186-3, section D.2.2). The cryptographic operations are implemented using constant-time algorithms. -

func P256 +

func P256

func P256() Curve
@@ -87,7 +87,7 @@ P256 returns a Curve which implements P-256 (see FIPS 186-3, section D.2.3) The cryptographic operations are implemented using constant-time algorithms. -

func P384 +

func P384

func P384() Curve
@@ -95,7 +95,7 @@ P384 returns a Curve which implements P-384 (see FIPS 186-3, section D.2.4) The cryptographic operations do not use constant-time algorithms. -

func P521 +

func P521

func P521() Curve
@@ -103,7 +103,7 @@ P521 returns a Curve which implements P-521 (see FIPS 186-3, section D.2.5) The cryptographic operations do not use constant-time algorithms. -

type CurveParams +

type CurveParams

type CurveParams struct {
     P       *big.Int // the order of the underlying field
@@ -117,32 +117,32 @@ The cryptographic operations do not use constant-time algorithms.
 CurveParams contains the parameters of an elliptic curve and also provides a
 generic, non-constant time implementation of Curve.
 
-

func (*CurveParams) Add +

func (*CurveParams) Add

func (curve *CurveParams) Add(x1, y1, x2, y2 *big.Int) (*big.Int, *big.Int)
-

func (*CurveParams) Double +

func (*CurveParams) Double

func (curve *CurveParams) Double(x1, y1 *big.Int) (*big.Int, *big.Int)
-

func (*CurveParams) IsOnCurve +

func (*CurveParams) IsOnCurve

func (curve *CurveParams) IsOnCurve(x, y *big.Int) bool
-

func (*CurveParams) Params +

func (*CurveParams) Params

func (curve *CurveParams) Params() *CurveParams
-

func (*CurveParams) ScalarBaseMult +

func (*CurveParams) ScalarBaseMult

func (curve *CurveParams) ScalarBaseMult(k []byte) (*big.Int, *big.Int)
-

func (*CurveParams) ScalarMult +

func (*CurveParams) ScalarMult

func (curve *CurveParams) ScalarMult(Bx, By *big.Int, k []byte) (*big.Int, *big.Int)
diff --git a/Source/crypto/hmac/hmac.md b/Source/crypto/hmac/hmac.md index 894bf29..ae8fab4 100644 --- a/Source/crypto/hmac/hmac.md +++ b/Source/crypto/hmac/hmac.md @@ -27,15 +27,15 @@ timing side-channels: - [func New(h func() hash.Hash, key []byte) hash.Hash](#New) ### Package files - [hmac.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/hmac/hmac.go) + [hmac.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/hmac/hmac.go) -

func Equal +

func Equal

func Equal(mac1, mac2 []byte) bool
Equal compares two MACs for equality without leaking timing information. -

func New +

func New

func New(h func() hash.Hash, key []byte) hash.Hash
diff --git a/Source/crypto/md5/md5.md b/Source/crypto/md5/md5.md index 70235dd..2172d01 100644 --- a/Source/crypto/md5/md5.md +++ b/Source/crypto/md5/md5.md @@ -22,7 +22,7 @@ MD5 is cryptographically broken and should not be used for secure applications. - [Sum](#exampleSum) ### Package files - [md5.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/md5/md5.go) [md5block.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/md5/md5block.go) [md5block_decl.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/md5/md5block_decl.go) + [md5.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/md5/md5.go) [md5block.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/md5/md5block.go) [md5block_decl.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/md5/md5block_decl.go)

Constants

@@ -34,7 +34,7 @@ The blocksize of MD5 in bytes. The size of an MD5 checksum in bytes. -

func New +

func New

func New() hash.Hash
@@ -68,7 +68,7 @@ Example: fmt.Printf("%x", h.Sum(nil)) -

func Sum +

func Sum

func Sum(data []byte) [Size]byte
diff --git a/Source/crypto/rand/rand.md b/Source/crypto/rand/rand.md index a665e72..9e4d0d3 100644 --- a/Source/crypto/rand/rand.md +++ b/Source/crypto/rand/rand.md @@ -20,7 +20,7 @@ generator. - [Read](#exampleRead) ### Package files - [eagain.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/rand/eagain.go) [rand.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/rand/rand.go) [rand_linux.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/rand/rand_linux.go) [rand_unix.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/rand/rand_unix.go) [util.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/rand/util.go) + [eagain.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/rand/eagain.go) [rand.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/rand/rand.go) [rand_linux.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/rand/rand_linux.go) [rand_unix.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/rand/rand_unix.go) [util.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/rand/util.go)

Variables

@@ -33,13 +33,13 @@ On Linux, Reader uses getrandom(2) if available, /dev/urandom otherwise. On OpenBSD, Reader uses getentropy(2). On other Unix-like systems, Reader reads from /dev/urandom. On Windows systems, Reader uses the CryptGenRandom API. -

func Int +

func Int

func Int(rand io.Reader, max *big.Int) (n *big.Int, err error)
Int returns a uniform random value in [0, max). It panics if max <= 0. -

func Prime +

func Prime

func Prime(rand io.Reader, bits int) (p *big.Int, err error)
@@ -47,7 +47,7 @@ Prime returns a number, p, of the given size, such that p is prime with high probability. Prime will return error for any error returned by rand.Read or if bits < 2. -

func Read +

func Read

func Read(b []byte) (n int, err error)
diff --git a/Source/crypto/rc4/rc4.md b/Source/crypto/rc4/rc4.md index 820552f..d52b355 100644 --- a/Source/crypto/rc4/rc4.md +++ b/Source/crypto/rc4/rc4.md @@ -20,9 +20,9 @@ RC4 is cryptographically broken and should not be used for secure applications. - [func (k KeySizeError) Error() string](#KeySizeError.Error) ### Package files - [rc4.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/rc4/rc4.go) [rc4_asm.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/rc4/rc4_asm.go) + [rc4.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/rc4/rc4.go) [rc4_asm.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/rc4/rc4_asm.go) -

type Cipher +

type Cipher

type Cipher struct {
     // contains filtered or unexported fields
@@ -30,33 +30,33 @@ RC4 is cryptographically broken and should not be used for secure applications.
 
 A Cipher is an instance of RC4 using a particular key.
 
-

func NewCipher +

func NewCipher

func NewCipher(key []byte) (*Cipher, error)
NewCipher creates and returns a new Cipher. The key argument should be the RC4 key, at least 1 byte and at most 256 bytes. -

func (*Cipher) Reset +

func (*Cipher) Reset

func (c *Cipher) Reset()
Reset zeros the key data so that it will no longer appear in the process's memory. -

func (*Cipher) XORKeyStream +

func (*Cipher) XORKeyStream

func (c *Cipher) XORKeyStream(dst, src []byte)
XORKeyStream sets dst to the result of XORing src with the key stream. Dst and src must overlap entirely or not at all. -

type KeySizeError +

type KeySizeError

type KeySizeError int
-

func (KeySizeError) Error +

func (KeySizeError) Error

func (k KeySizeError) Error() string
diff --git a/Source/crypto/rsa/rsa.md b/Source/crypto/rsa/rsa.md index ec8ca4b..00e5b5d 100644 --- a/Source/crypto/rsa/rsa.md +++ b/Source/crypto/rsa/rsa.md @@ -62,7 +62,7 @@ algorithms. - [VerifyPKCS1v15](#exampleVerifyPKCS1v15) ### Package files - [pkcs1v15.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/rsa/pkcs1v15.go) [pss.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/rsa/pss.go) [rsa.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/rsa/rsa.go) + [pkcs1v15.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/rsa/pkcs1v15.go) [pss.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/rsa/pss.go) [rsa.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/rsa/rsa.go)

Constants

@@ -93,7 +93,7 @@ large for the size of the public key. ErrVerification represents a failure to verify a signature. It is deliberately vague to avoid adaptive attacks. -

func DecryptOAEP +

func DecryptOAEP

func DecryptOAEP(hash hash.Hash, random io.Reader, priv *PrivateKey, ciphertext []byte, label []byte) ([]byte, error)
@@ -130,7 +130,7 @@ Example: // ciphertext should be signed before authenticity is assumed and, even // then, consider that messages might be reordered. -

func DecryptPKCS1v15 +

func DecryptPKCS1v15

func DecryptPKCS1v15(rand io.Reader, priv *PrivateKey, ciphertext []byte) ([]byte, error)
@@ -144,7 +144,7 @@ whether each instance returned an error then they can decrypt and forge signatures as if they had the private key. See DecryptPKCS1v15SessionKey for a way of solving this problem. -

func DecryptPKCS1v15SessionKey +

func DecryptPKCS1v15SessionKey

func DecryptPKCS1v15SessionKey(rand io.Reader, priv *PrivateKey, ciphertext []byte, key []byte) error
@@ -218,7 +218,7 @@ Example: fmt.Printf("Plaintext: %s\n", string(plaintext)) -

func EncryptOAEP +

func EncryptOAEP

func EncryptOAEP(hash hash.Hash, random io.Reader, pub *PublicKey, msg []byte, label []byte) ([]byte, error)
@@ -260,7 +260,7 @@ Example: // different each time. fmt.Printf("Ciphertext: %x\n", ciphertext) -

func EncryptPKCS1v15 +

func EncryptPKCS1v15

func EncryptPKCS1v15(rand io.Reader, pub *PublicKey, msg []byte) ([]byte, error)
@@ -274,7 +274,7 @@ same message twice doesn't result in the same ciphertext. WARNING: use of this function to encrypt plaintexts other than session keys is dangerous. Use RSA OAEP in new protocols. -

func SignPKCS1v15 +

func SignPKCS1v15

func SignPKCS1v15(rand io.Reader, priv *PrivateKey, hash crypto.Hash, hashed []byte) ([]byte, error)
@@ -315,7 +315,7 @@ Example: fmt.Printf("Signature: %x\n", signature) -

func SignPSS +

func SignPSS

func SignPSS(rand io.Reader, priv *PrivateKey, hash crypto.Hash, hashed []byte, opts *PSSOptions) ([]byte, error)
@@ -324,7 +324,7 @@ hashed must be the result of hashing the input message using the given hash function. The opts argument may be nil, in which case sensible defaults are used. -

func VerifyPKCS1v15 +

func VerifyPKCS1v15

func VerifyPKCS1v15(pub *PublicKey, hash crypto.Hash, hashed []byte, sig []byte) error
@@ -355,7 +355,7 @@ Example: // signature is a valid signature of message from the public key. -

func VerifyPSS +

func VerifyPSS

func VerifyPSS(pub *PublicKey, hash crypto.Hash, hashed []byte, sig []byte, opts *PSSOptions) error
@@ -364,7 +364,7 @@ message using the given hash function and sig is the signature. A valid signature is indicated by returning a nil error. The opts argument may be nil, in which case sensible defaults are used. -

type CRTValue +

type CRTValue

type CRTValue struct {
     Exp   *big.Int // D mod (prime-1).
@@ -374,7 +374,7 @@ in which case sensible defaults are used.
 
 CRTValue contains the precomputed Chinese remainder theorem values.
 
-

type OAEPOptions +

type OAEPOptions

type OAEPOptions struct {
     // Hash is the hash function that will be used when generating the mask.
@@ -387,7 +387,7 @@ CRTValue contains the precomputed Chinese remainder theorem values.
 OAEPOptions is an interface for passing options to OAEP decryption using the
 crypto.Decrypter interface.
 
-

type PKCS1v15DecryptOptions +

type PKCS1v15DecryptOptions

type PKCS1v15DecryptOptions struct {
     // SessionKeyLen is the length of the session key that is being
@@ -400,7 +400,7 @@ crypto.Decrypter interface.
 PKCS1v15DecrypterOpts is for passing options to PKCS#1 v1.5 decryption using the
 crypto.Decrypter interface.
 
-

type PSSOptions +

type PSSOptions

type PSSOptions struct {
     // SaltLength controls the length of the salt used in the PSS
@@ -416,13 +416,13 @@ crypto.Decrypter interface.
 
 PSSOptions contains options for creating and verifying PSS signatures.
 
-

func (*PSSOptions) HashFunc +

func (*PSSOptions) HashFunc

func (pssOpts *PSSOptions) HashFunc() crypto.Hash
HashFunc returns pssOpts.Hash so that PSSOptions implements crypto.SignerOpts. -

type PrecomputedValues +

type PrecomputedValues

type PrecomputedValues struct {
     Dp, Dq *big.Int // D mod (P-1) (or mod Q-1)
@@ -436,7 +436,7 @@ HashFunc returns pssOpts.Hash so that PSSOptions implements crypto.SignerOpts.
 }
-

type PrivateKey +

type PrivateKey

type PrivateKey struct {
     PublicKey            // public part.
@@ -450,14 +450,14 @@ HashFunc returns pssOpts.Hash so that PSSOptions implements crypto.SignerOpts.
 
 A PrivateKey represents an RSA key
 
-

func GenerateKey +

func GenerateKey

func GenerateKey(random io.Reader, bits int) (*PrivateKey, error)
GenerateKey generates an RSA keypair of the given bit size using the random source random (for example, crypto/rand.Reader). -

func GenerateMultiPrimeKey +

func GenerateMultiPrimeKey

func GenerateMultiPrimeKey(random io.Reader, nprimes int, bits int) (*PrivateKey, error)
@@ -472,7 +472,7 @@ Table 1 in [2] suggests maximum numbers of primes for a given size. [1] US patent 4405829 (1972, expired) [2] http://www.cacr.math.uwaterloo.ca/techreports/2006/cacr2006-16.pdf -

func (*PrivateKey) Decrypt +

func (*PrivateKey) Decrypt

func (priv *PrivateKey) Decrypt(rand io.Reader, ciphertext []byte, opts crypto.DecrypterOpts) (plaintext []byte, err error)
@@ -480,20 +480,20 @@ Decrypt decrypts ciphertext with priv. If opts is nil or of type *PKCS1v15DecryptOptions then PKCS#1 v1.5 decryption is performed. Otherwise opts must have type *OAEPOptions and OAEP decryption is done. -

func (*PrivateKey) Precompute +

func (*PrivateKey) Precompute

func (priv *PrivateKey) Precompute()
Precompute performs some calculations that speed up private key operations in the future. -

func (*PrivateKey) Public +

func (*PrivateKey) Public

func (priv *PrivateKey) Public() crypto.PublicKey
Public returns the public key corresponding to priv. -

func (*PrivateKey) Sign +

func (*PrivateKey) Sign

func (priv *PrivateKey) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) ([]byte, error)
@@ -505,14 +505,14 @@ This method implements crypto.Signer, which is an interface to support keys where the private part is kept in, for example, a hardware module. Common uses should use the Sign* functions in this package directly. -

func (*PrivateKey) Validate +

func (*PrivateKey) Validate

func (priv *PrivateKey) Validate() error
Validate performs basic sanity checks on the key. It returns nil if the key is valid, or else an error describing a problem. -

type PublicKey +

type PublicKey

type PublicKey struct {
     N *big.Int // modulus
diff --git a/Source/crypto/sha1/sha1.md b/Source/crypto/sha1/sha1.md
index 568f5f2..ae27b2d 100644
--- a/Source/crypto/sha1/sha1.md
+++ b/Source/crypto/sha1/sha1.md
@@ -23,7 +23,7 @@ applications.
 - [Sum](#exampleSum)
 
 ### Package files
- [sha1.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/sha1/sha1.go) [sha1block.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/sha1/sha1block.go) [sha1block_amd64.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/sha1/sha1block_amd64.go)
+ [sha1.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/sha1/sha1.go) [sha1block.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/sha1/sha1block.go) [sha1block_amd64.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/sha1/sha1block_amd64.go)
 
 

Constants

@@ -35,7 +35,7 @@ The blocksize of SHA-1 in bytes. The size of a SHA-1 checksum in bytes. -

func New +

func New

func New() hash.Hash
@@ -69,7 +69,7 @@ Example: fmt.Printf("% x", h.Sum(nil)) -

func Sum +

func Sum

func Sum(data []byte) [Size]byte
diff --git a/Source/crypto/sha256/sha256.md b/Source/crypto/sha256/sha256.md index eb5f182..f388d0a 100644 --- a/Source/crypto/sha256/sha256.md +++ b/Source/crypto/sha256/sha256.md @@ -23,7 +23,7 @@ FIPS 180-4. - [Sum256](#exampleSum256) ### Package files - [sha256.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/sha256/sha256.go) [sha256block.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/sha256/sha256block.go) [sha256block_amd64.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/sha256/sha256block_amd64.go) [sha256block_decl.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/sha256/sha256block_decl.go) + [sha256.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/sha256/sha256.go) [sha256block.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/sha256/sha256block.go) [sha256block_amd64.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/sha256/sha256block_amd64.go) [sha256block_decl.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/sha256/sha256block_decl.go)

Constants

@@ -39,7 +39,7 @@ The size of a SHA256 checksum in bytes. The size of a SHA224 checksum in bytes. -

func New +

func New

func New() hash.Hash
@@ -72,19 +72,19 @@ Example: fmt.Printf("%x", h.Sum(nil)) -

func New224 +

func New224

func New224() hash.Hash
New224 returns a new hash.Hash computing the SHA224 checksum. -

func Sum224 +

func Sum224

func Sum224(data []byte) (sum224 [Size224]byte)
Sum224 returns the SHA224 checksum of the data. -

func Sum256 +

func Sum256

func Sum256(data []byte) [Size]byte
diff --git a/Source/crypto/sha512/sha512.md b/Source/crypto/sha512/sha512.md index a8f238b..ca682a3 100644 --- a/Source/crypto/sha512/sha512.md +++ b/Source/crypto/sha512/sha512.md @@ -25,7 +25,7 @@ the internal state of the hash. - [func Sum512_256(data []byte) (sum256 [Size256]byte)](#Sum512_256) ### Package files - [sha512.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/sha512/sha512.go) [sha512block.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/sha512/sha512block.go) [sha512block_amd64.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/sha512/sha512block_amd64.go) + [sha512.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/sha512/sha512.go) [sha512block.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/sha512/sha512block.go) [sha512block_amd64.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/sha512/sha512block_amd64.go)

Constants

@@ -48,49 +48,49 @@ the internal state of the hash. )
-

func New +

func New

func New() hash.Hash
New returns a new hash.Hash computing the SHA-512 checksum. -

func New384 +

func New384

func New384() hash.Hash
New384 returns a new hash.Hash computing the SHA-384 checksum. -

func New512_224 +

func New512_224

func New512_224() hash.Hash
New512_224 returns a new hash.Hash computing the SHA-512/224 checksum. -

func New512_256 +

func New512_256

func New512_256() hash.Hash
New512_256 returns a new hash.Hash computing the SHA-512/256 checksum. -

func Sum384 +

func Sum384

func Sum384(data []byte) (sum384 [Size384]byte)
Sum384 returns the SHA384 checksum of the data. -

func Sum512 +

func Sum512

func Sum512(data []byte) [Size]byte
Sum512 returns the SHA512 checksum of the data. -

func Sum512_224 +

func Sum512_224

func Sum512_224(data []byte) (sum224 [Size224]byte)
Sum512_224 returns the Sum512/224 checksum of the data. -

func Sum512_256 +

func Sum512_256

func Sum512_256(data []byte) (sum256 [Size256]byte)
diff --git a/Source/crypto/subtle/subtle.md b/Source/crypto/subtle/subtle.md index bca70b5..f93ed7b 100644 --- a/Source/crypto/subtle/subtle.md +++ b/Source/crypto/subtle/subtle.md @@ -18,15 +18,15 @@ but require careful thought to use correctly. - [func ConstantTimeSelect(v, x, y int) int](#ConstantTimeSelect) ### Package files - [constant_time.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/subtle/constant_time.go) + [constant_time.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/subtle/constant_time.go) -

func ConstantTimeByteEq +

func ConstantTimeByteEq

func ConstantTimeByteEq(x, y uint8) int
ConstantTimeByteEq returns 1 if x == y and 0 otherwise. -

func ConstantTimeCompare +

func ConstantTimeCompare

func ConstantTimeCompare(x, y []byte) int
@@ -34,7 +34,7 @@ ConstantTimeCompare returns 1 if and only if the two slices, x and y, have equal contents. The time taken is a function of the length of the slices and is independent of the contents. -

func ConstantTimeCopy +

func ConstantTimeCopy

func ConstantTimeCopy(v int, x, y []byte)
@@ -42,20 +42,20 @@ ConstantTimeCopy copies the contents of y into x (a slice of equal length) if v == 1. If v == 0, x is left unchanged. Its behavior is undefined if v takes any other value. -

func ConstantTimeEq +

func ConstantTimeEq

func ConstantTimeEq(x, y int32) int
ConstantTimeEq returns 1 if x == y and 0 otherwise. -

func ConstantTimeLessOrEq +

func ConstantTimeLessOrEq

func ConstantTimeLessOrEq(x, y int) int
ConstantTimeLessOrEq returns 1 if x <= y and 0 otherwise. Its behavior is undefined if x or y are negative or > 2**31 - 1. -

func ConstantTimeSelect +

func ConstantTimeSelect

func ConstantTimeSelect(v, x, y int) int
diff --git a/Source/crypto/tls/tls.md b/Source/crypto/tls/tls.md index 165ab75..fe7f1b3 100644 --- a/Source/crypto/tls/tls.md +++ b/Source/crypto/tls/tls.md @@ -57,7 +57,7 @@ Package tls partially implements TLS 1.2, as specified in RFC 5246. - [Dial](#exampleDial) ### Package files - [alert.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/tls/alert.go) [cipher_suites.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/tls/cipher_suites.go) [common.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/tls/common.go) [conn.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/tls/conn.go) [handshake_client.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/tls/handshake_client.go) [handshake_messages.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/tls/handshake_messages.go) [handshake_server.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/tls/handshake_server.go) [key_agreement.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/tls/key_agreement.go) [prf.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/tls/prf.go) [ticket.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/tls/ticket.go) [tls.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/tls/tls.go) + [alert.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/tls/alert.go) [cipher_suites.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/tls/cipher_suites.go) [common.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/tls/common.go) [conn.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/tls/conn.go) [handshake_client.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/tls/handshake_client.go) [handshake_messages.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/tls/handshake_messages.go) [handshake_server.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/tls/handshake_server.go) [key_agreement.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/tls/key_agreement.go) [prf.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/tls/prf.go) [ticket.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/tls/ticket.go) [tls.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/tls/tls.go)

Constants

@@ -103,7 +103,7 @@ Taken from http://www.iana.org/assignments/tls-parameters/tls-parameters.xml )
-

func Listen +

func Listen

func Listen(network, laddr string, config *Config) (net.Listener, error)
@@ -111,7 +111,7 @@ Listen creates a TLS listener accepting connections on the given network address using net.Listen. The configuration config must be non-nil and must include at least one certificate or else set GetCertificate. -

func NewListener +

func NewListener

func NewListener(inner net.Listener, config *Config) net.Listener
@@ -119,7 +119,7 @@ NewListener creates a Listener which accepts connections from an inner Listener and wraps each connection with Server. The configuration config must be non-nil and must include at least one certificate or else set GetCertificate. -

type Certificate +

type Certificate

type Certificate struct {
     Certificate [][]byte
@@ -144,7 +144,7 @@ and must include at least one certificate or else set GetCertificate.
 
 A Certificate is a chain of one or more certificates, leaf first.
 
-

func LoadX509KeyPair +

func LoadX509KeyPair

func LoadX509KeyPair(certFile, keyFile string) (Certificate, error)
@@ -154,7 +154,7 @@ intermediate certificates following the leaf certificate to form a certificate chain. On successful return, Certificate.Leaf will be nil because the parsed form of the certificate is not retained. -

func X509KeyPair +

func X509KeyPair

func X509KeyPair(certPEMBlock, keyPEMBlock []byte) (Certificate, error)
@@ -162,7 +162,7 @@ X509KeyPair parses a public/private key pair from a pair of PEM encoded data. On successful return, Certificate.Leaf will be nil because the parsed form of the certificate is not retained. -

type CertificateRequestInfo +

type CertificateRequestInfo

type CertificateRequestInfo struct {
     // AcceptableCAs contains zero or more, DER-encoded, X.501
@@ -180,7 +180,7 @@ CertificateRequestInfo contains information from a server's CertificateRequest
 message, which is used to demand a certificate and proof of control from a
 client.
 
-

type ClientAuthType +

type ClientAuthType

type ClientAuthType int
@@ -196,7 +196,7 @@ Authentication. )
-

type ClientHelloInfo +

type ClientHelloInfo

type ClientHelloInfo struct {
     // CipherSuites lists the CipherSuites supported by the client (e.g.
@@ -251,7 +251,7 @@ Authentication.
 ClientHelloInfo contains information from a ClientHello message in order to
 guide certificate selection in the GetCertificate callback.
 
-

type ClientSessionCache +

type ClientSessionCache

type ClientSessionCache interface {
     // Get searches for a ClientSessionState associated with the given key.
@@ -268,7 +268,7 @@ implementations should expect to be called concurrently from different
 goroutines. Only ticket-based resumption is supported, not SessionID-based
 resumption.
 
-

func NewLRUClientSessionCache +

func NewLRUClientSessionCache

func NewLRUClientSessionCache(capacity int) ClientSessionCache
@@ -276,7 +276,7 @@ NewLRUClientSessionCache returns a ClientSessionCache with the given capacity that uses an LRU strategy. If capacity is < 1, a default capacity is used instead. -

type ClientSessionState +

type ClientSessionState

type ClientSessionState struct {
     // contains filtered or unexported fields
@@ -284,7 +284,7 @@ instead.
 
 ClientSessionState contains the state needed by clients to resume TLS sessions.
 
-

type Config +

type Config

type Config struct {
     // Rand provides the source of entropy for nonces and RSA blinding.
@@ -510,21 +510,21 @@ Example:
     // Output:
     // CLIENT_RANDOM 0000000000000000000000000000000000000000000000000000000000000000 baca0df460a688e44ce018b025183cc2353ae01f89755ef766eedd3ecc302888ee3b3a22962e45f48c20df15a98c0e80
 
-

func (*Config) BuildNameToCertificate +

func (*Config) BuildNameToCertificate

func (c *Config) BuildNameToCertificate()
BuildNameToCertificate parses c.Certificates and builds c.NameToCertificate from the CommonName and SubjectAlternateName fields of each of the leaf certificates. -

func (*Config) Clone +

func (*Config) Clone

func (c *Config) Clone() *Config
Clone returns a shallow clone of c. It is safe to clone a Config that is being used concurrently by a TLS client or server. -

func (*Config) SetSessionTicketKeys +

func (*Config) SetSessionTicketKeys

func (c *Config) SetSessionTicketKeys(keys [][32]byte)
@@ -534,7 +534,7 @@ decrypting tickets. It is safe to call this function while the server is running in order to rotate the session ticket keys. The function will panic if keys is empty. -

type Conn +

type Conn

type Conn struct {
     // contains filtered or unexported fields
@@ -542,7 +542,7 @@ empty.
 
 A Conn represents a secured connection. It implements the net.Conn interface.
 
-

func Client +

func Client

func Client(conn net.Conn, config *Config) *Conn
@@ -550,7 +550,7 @@ Client returns a new TLS client side connection using conn as the underlying transport. The config cannot be nil: users must set either ServerName or InsecureSkipVerify in the config. -

func Dial +

func Dial

func Dial(network, addr string, config *Config) (*Conn, error)
@@ -607,7 +607,7 @@ Example: } conn.Close() -

func DialWithDialer +

func DialWithDialer

func DialWithDialer(dialer *net.Dialer, network, addr string, config *Config) (*Conn, error)
@@ -619,7 +619,7 @@ whole. DialWithDialer interprets a nil configuration as equivalent to the zero configuration; see the documentation of Config for the defaults. -

func Server +

func Server

func Server(conn net.Conn, config *Config) *Conn
@@ -627,13 +627,13 @@ Server returns a new TLS server side connection using conn as the underlying transport. The configuration config must be non-nil and must include at least one certificate or else set GetCertificate. -

func (*Conn) Close +

func (*Conn) Close

func (c *Conn) Close() error
Close closes the connection. -

func (*Conn) CloseWrite +

func (*Conn) CloseWrite

func (c *Conn) CloseWrite() error
@@ -641,13 +641,13 @@ CloseWrite shuts down the writing side of the connection. It should only be called once the handshake has completed and does not call CloseWrite on the underlying connection. Most callers should just use Close. -

func (*Conn) ConnectionState +

func (*Conn) ConnectionState

func (c *Conn) ConnectionState() ConnectionState
ConnectionState returns basic TLS details about the connection. -

func (*Conn) Handshake +

func (*Conn) Handshake

func (c *Conn) Handshake() error
@@ -655,33 +655,33 @@ Handshake runs the client or server handshake protocol if it has not yet been run. Most uses of this package need not call Handshake explicitly: the first Read or Write will call it automatically. -

func (*Conn) LocalAddr +

func (*Conn) LocalAddr

func (c *Conn) LocalAddr() net.Addr
LocalAddr returns the local network address. -

func (*Conn) OCSPResponse +

func (*Conn) OCSPResponse

func (c *Conn) OCSPResponse() []byte
OCSPResponse returns the stapled OCSP response from the TLS server, if any. (Only valid for client connections.) -

func (*Conn) Read +

func (*Conn) Read

func (c *Conn) Read(b []byte) (n int, err error)
Read can be made to time out and return a net.Error with Timeout() == true after a fixed time limit; see SetDeadline and SetReadDeadline. -

func (*Conn) RemoteAddr +

func (*Conn) RemoteAddr

func (c *Conn) RemoteAddr() net.Addr
RemoteAddr returns the remote network address. -

func (*Conn) SetDeadline +

func (*Conn) SetDeadline

func (c *Conn) SetDeadline(t time.Time) error
@@ -689,14 +689,14 @@ SetDeadline sets the read and write deadlines associated with the connection. A zero value for t means Read and Write will not time out. After a Write has timed out, the TLS state is corrupt and all future writes will return the same error. -

func (*Conn) SetReadDeadline +

func (*Conn) SetReadDeadline

func (c *Conn) SetReadDeadline(t time.Time) error
SetReadDeadline sets the read deadline on the underlying connection. A zero value for t means Read will not time out. -

func (*Conn) SetWriteDeadline +

func (*Conn) SetWriteDeadline

func (c *Conn) SetWriteDeadline(t time.Time) error
@@ -704,20 +704,20 @@ SetWriteDeadline sets the write deadline on the underlying connection. A zero value for t means Write will not time out. After a Write has timed out, the TLS state is corrupt and all future writes will return the same error. -

func (*Conn) VerifyHostname +

func (*Conn) VerifyHostname

func (c *Conn) VerifyHostname(host string) error
VerifyHostname checks that the peer certificate chain is valid for connecting to host. If so, it returns nil; if not, it returns an error describing the problem. -

func (*Conn) Write +

func (*Conn) Write

func (c *Conn) Write(b []byte) (int, error)
Write writes data to the connection. -

type ConnectionState +

type ConnectionState

type ConnectionState struct {
     Version                     uint16                // TLS version used by the connection (e.g. VersionTLS12)
@@ -743,7 +743,7 @@ Write writes data to the connection.
 
 ConnectionState records basic TLS details about the connection.
 
-

type CurveID +

type CurveID

type CurveID uint16
@@ -758,7 +758,7 @@ http://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters )
-

type RecordHeaderError +

type RecordHeaderError

type RecordHeaderError struct {
     // Msg contains a human readable string that describes the error.
@@ -770,12 +770,12 @@ http://www.iana.org/assignments/tls-parameters/tls-parameters.xml#tls-parameters
 
 RecordHeaderError results when a TLS record header is invalid.
 
-

func (RecordHeaderError) Error +

func (RecordHeaderError) Error

func (e RecordHeaderError) Error() string
-

type RenegotiationSupport +

type RenegotiationSupport

type RenegotiationSupport int
@@ -805,7 +805,7 @@ with protocols that synchronise with the renegotiation, such as HTTPS. )
-

type SignatureScheme +

type SignatureScheme

type SignatureScheme uint16
@@ -833,7 +833,7 @@ https://tools.ietf.org/html/draft-ietf-tls-tls13-18#section-4.2.3.

Bugs

-- [☞](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/tls/tls.go#L1) The crypto/tls package only implements some countermeasures against Lucky13 +- [☞](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/tls/tls.go#L1) The crypto/tls package only implements some countermeasures against Lucky13 attacks on CBC-mode encryption, and only on SHA1 variants. See http://www.isg.rhul.ac.uk/tls/TLStiming.pdf and https://www.imperialviolet.org/2013/02/04/luckythirteen.html. diff --git a/Source/crypto/x509/pkix/pkix.md b/Source/crypto/x509/pkix/pkix.md index 824b259..74da508 100644 --- a/Source/crypto/x509/pkix/pkix.md +++ b/Source/crypto/x509/pkix/pkix.md @@ -27,9 +27,9 @@ serialization of X.509 certificates, CRL and OCSP. - [type TBSCertificateList](#TBSCertificateList) ### Package files - [pkix.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/x509/pkix/pkix.go) + [pkix.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/x509/pkix/pkix.go) -

type AlgorithmIdentifier +

type AlgorithmIdentifier

type AlgorithmIdentifier struct {
     Algorithm  asn1.ObjectIdentifier
@@ -39,7 +39,7 @@ serialization of X.509 certificates, CRL and OCSP.
 AlgorithmIdentifier represents the ASN.1 structure of the same name. See RFC
 5280, section 4.1.1.2.
 
-

type AttributeTypeAndValue +

type AttributeTypeAndValue

type AttributeTypeAndValue struct {
     Type  asn1.ObjectIdentifier
@@ -49,7 +49,7 @@ AlgorithmIdentifier represents the ASN.1 structure of the same name. See RFC
 AttributeTypeAndValue mirrors the ASN.1 structure of the same name in
 http://tools.ietf.org/html/rfc5280#section-4.1.2.4
 
-

type AttributeTypeAndValueSET +

type AttributeTypeAndValueSET

type AttributeTypeAndValueSET struct {
     Type  asn1.ObjectIdentifier
@@ -59,7 +59,7 @@ http://tools.ietf.org/html/rfc5280#section-4.1.2.4
 AttributeTypeAndValueSET represents a set of ASN.1 sequences of
 AttributeTypeAndValue sequences from RFC 2986 (PKCS #10).
 
-

type CertificateList +

type CertificateList

type CertificateList struct {
     TBSCertList        TBSCertificateList
@@ -70,13 +70,13 @@ AttributeTypeAndValue sequences from RFC 2986 (PKCS #10).
 CertificateList represents the ASN.1 structure of the same name. See RFC 5280,
 section 5.1. Use Certificate.CheckCRLSignature to verify the signature.
 
-

func (*CertificateList) HasExpired +

func (*CertificateList) HasExpired

func (certList *CertificateList) HasExpired(now time.Time) bool
HasExpired reports whether certList should have been updated by now. -

type Extension +

type Extension

type Extension struct {
     Id       asn1.ObjectIdentifier
@@ -87,7 +87,7 @@ HasExpired reports whether certList should have been updated by now.
 Extension represents the ASN.1 structure of the same name. See RFC 5280, section
 4.2.
 
-

type Name +

type Name

type Name struct {
     Country, Organization, OrganizationalUnit []string
@@ -104,41 +104,41 @@ elements of a DN. When parsing, all elements are stored in Names and
 non-standard elements can be extracted from there. When marshaling, elements in
 ExtraNames are appended and override other values with the same OID.
 
-

func (*Name) FillFromRDNSequence +

func (*Name) FillFromRDNSequence

func (n *Name) FillFromRDNSequence(rdns *RDNSequence)
-

func (Name) String +

func (Name) String

func (n Name) String() string
String returns the string form of n, roughly following the RFC 2253 Distinguished Names syntax. -

func (Name) ToRDNSequence +

func (Name) ToRDNSequence

func (n Name) ToRDNSequence() (ret RDNSequence)
-

type RDNSequence +

type RDNSequence

type RDNSequence []RelativeDistinguishedNameSET
-

func (RDNSequence) String +

func (RDNSequence) String

func (r RDNSequence) String() string
String returns a string representation of the sequence r, roughly following the RFC 2253 Distinguished Names syntax. -

type RelativeDistinguishedNameSET +

type RelativeDistinguishedNameSET

type RelativeDistinguishedNameSET []AttributeTypeAndValue
-

type RevokedCertificate +

type RevokedCertificate

type RevokedCertificate struct {
     SerialNumber   *big.Int
@@ -149,7 +149,7 @@ RFC 2253 Distinguished Names syntax.
 RevokedCertificate represents the ASN.1 structure of the same name. See RFC
 5280, section 5.1.
 
-

type TBSCertificateList +

type TBSCertificateList

type TBSCertificateList struct {
     Raw                 asn1.RawContent
diff --git a/Source/crypto/x509/x509.md b/Source/crypto/x509/x509.md
index baeb04e..6f0edc7 100644
--- a/Source/crypto/x509/x509.md
+++ b/Source/crypto/x509/x509.md
@@ -80,7 +80,7 @@ SSL certificate files directory, respectively.
 - [ParsePKIXPublicKey](#exampleParsePKIXPublicKey)
 
 ### Package files
- [cert_pool.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/x509/cert_pool.go) [pem_decrypt.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/x509/pem_decrypt.go) [pkcs1.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/x509/pkcs1.go) [pkcs8.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/x509/pkcs8.go) [root.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/x509/root.go) [root_linux.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/x509/root_linux.go) [root_unix.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/x509/root_unix.go) [sec1.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/x509/sec1.go) [verify.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/x509/verify.go) [x509.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/crypto/x509/x509.go)
+ [cert_pool.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/x509/cert_pool.go) [pem_decrypt.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/x509/pem_decrypt.go) [pkcs1.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/x509/pkcs1.go) [pkcs8.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/x509/pkcs8.go) [root.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/x509/root.go) [root_linux.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/x509/root_linux.go) [root_unix.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/x509/root_unix.go) [sec1.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/x509/sec1.go) [verify.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/x509/verify.go) [x509.go](//github.com/golang/go/blob/release-branch.go1.10/src/crypto/x509/x509.go)
 
 

Variables

@@ -93,7 +93,7 @@ involves algorithms that are not currently implemented. IncorrectPasswordError is returned when an incorrect password is detected. -

func CreateCertificate +

func CreateCertificate

func CreateCertificate(rand io.Reader, template, parent *Certificate, pub, priv interface{}) (cert []byte, err error)
@@ -117,7 +117,7 @@ The AuthorityKeyId will be taken from the SubjectKeyId of parent, if any, unless the resulting certificate is self-signed. Otherwise the value from template will be used. -

func CreateCertificateRequest +

func CreateCertificateRequest

func CreateCertificateRequest(rand io.Reader, template *CertificateRequest, priv interface{}) (csr []byte, err error)
@@ -131,7 +131,7 @@ The returned slice is the certificate request in DER encoding. All keys types that are implemented via crypto.Signer are supported (This includes *rsa.PublicKey and *ecdsa.PublicKey.) -

func DecryptPEMBlock +

func DecryptPEMBlock

func DecryptPEMBlock(b *pem.Block, password []byte) ([]byte, error)
@@ -143,38 +143,38 @@ IncorrectPasswordError is returned. Because of deficiencies in the encrypted-PEM format, it's not always possible to detect an incorrect password. In these cases no error will be returned but the decrypted DER bytes will be random noise. -

func EncryptPEMBlock +

func EncryptPEMBlock

func EncryptPEMBlock(rand io.Reader, blockType string, data, password []byte, alg PEMCipher) (*pem.Block, error)
EncryptPEMBlock returns a PEM block of the specified type holding the given DER-encoded data encrypted with the specified algorithm and password. -

func IsEncryptedPEMBlock +

func IsEncryptedPEMBlock

func IsEncryptedPEMBlock(b *pem.Block) bool
IsEncryptedPEMBlock returns if the PEM block is password encrypted. -

func MarshalECPrivateKey +

func MarshalECPrivateKey

func MarshalECPrivateKey(key *ecdsa.PrivateKey) ([]byte, error)
MarshalECPrivateKey marshals an EC private key into ASN.1, DER format. -

func MarshalPKCS1PrivateKey +

func MarshalPKCS1PrivateKey

func MarshalPKCS1PrivateKey(key *rsa.PrivateKey) []byte
MarshalPKCS1PrivateKey converts a private key to ASN.1 DER encoded form. -

func MarshalPKCS1PublicKey +

func MarshalPKCS1PublicKey

func MarshalPKCS1PublicKey(key *rsa.PublicKey) []byte
MarshalPKCS1PublicKey converts an RSA public key to PKCS#1, ASN.1 DER form. -

func MarshalPKCS8PrivateKey +

func MarshalPKCS8PrivateKey

func MarshalPKCS8PrivateKey(key interface{}) ([]byte, error)
@@ -184,13 +184,13 @@ Unsupported key types result in an error. See RFC 5208. -

func MarshalPKIXPublicKey +

func MarshalPKIXPublicKey

func MarshalPKIXPublicKey(pub interface{}) ([]byte, error)
MarshalPKIXPublicKey serialises a public key to DER-encoded PKIX format. -

func ParseCRL +

func ParseCRL

func ParseCRL(crlBytes []byte) (*pkix.CertificateList, error)
@@ -198,45 +198,45 @@ ParseCRL parses a CRL from the given bytes. It's often the case that PEM encoded CRLs will appear where they should be DER encoded, so this function will transparently handle PEM encoding as long as there isn't any leading garbage. -

func ParseCertificates +

func ParseCertificates

func ParseCertificates(asn1Data []byte) ([]*Certificate, error)
ParseCertificates parses one or more certificates from the given ASN.1 DER data. The certificates must be concatenated with no intermediate padding. -

func ParseDERCRL +

func ParseDERCRL

func ParseDERCRL(derBytes []byte) (*pkix.CertificateList, error)
ParseDERCRL parses a DER encoded CRL from the given bytes. -

func ParseECPrivateKey +

func ParseECPrivateKey

func ParseECPrivateKey(der []byte) (*ecdsa.PrivateKey, error)
ParseECPrivateKey parses an ASN.1 Elliptic Curve Private Key Structure. -

func ParsePKCS1PrivateKey +

func ParsePKCS1PrivateKey

func ParsePKCS1PrivateKey(der []byte) (*rsa.PrivateKey, error)
ParsePKCS1PrivateKey returns an RSA private key from its ASN.1 PKCS#1 DER encoded form. -

func ParsePKCS1PublicKey +

func ParsePKCS1PublicKey

func ParsePKCS1PublicKey(der []byte) (*rsa.PublicKey, error)
ParsePKCS1PublicKey parses a PKCS#1 public key in ASN.1 DER form. -

func ParsePKCS8PrivateKey +

func ParsePKCS8PrivateKey

func ParsePKCS8PrivateKey(der []byte) (key interface{}, err error)
ParsePKCS8PrivateKey parses an unencrypted, PKCS#8 private key. See RFC 5208. -

func ParsePKIXPublicKey +

func ParsePKIXPublicKey

func ParsePKIXPublicKey(derBytes []byte) (pub interface{}, err error)
@@ -289,7 +289,7 @@ Example: panic("unknown type of public key") } -

type CertPool +

type CertPool

type CertPool struct {
     // contains filtered or unexported fields
@@ -297,13 +297,13 @@ Example:
 
 CertPool is a set of certificates.
 
-

func NewCertPool +

func NewCertPool

func NewCertPool() *CertPool
NewCertPool returns a new, empty CertPool. -

func SystemCertPool +

func SystemCertPool

func SystemCertPool() (*CertPool, error)
@@ -312,13 +312,13 @@ SystemCertPool returns a copy of the system cert pool. Any mutations to the returned pool are not written to disk and do not affect any other pool. -

func (*CertPool) AddCert +

func (*CertPool) AddCert

func (s *CertPool) AddCert(cert *Certificate)
AddCert adds a certificate to a pool. -

func (*CertPool) AppendCertsFromPEM +

func (*CertPool) AppendCertsFromPEM

func (s *CertPool) AppendCertsFromPEM(pemCerts []byte) (ok bool)
@@ -329,14 +329,14 @@ successfully parsed. On many Linux systems, /etc/ssl/cert.pem will contain the system wide set of root CAs in a format suitable for this function. -

func (*CertPool) Subjects +

func (*CertPool) Subjects

func (s *CertPool) Subjects() [][]byte
Subjects returns a list of the DER-encoded subjects of all of the certificates in the pool. -

type Certificate +

type Certificate

type Certificate struct {
     Raw                     []byte // Complete ASN.1 DER content (certificate, signature algorithm and signature).
@@ -439,45 +439,45 @@ in the pool.
 
 A Certificate represents an X.509 certificate.
 
-

func ParseCertificate +

func ParseCertificate

func ParseCertificate(asn1Data []byte) (*Certificate, error)
ParseCertificate parses a single certificate from the given ASN.1 DER data. -

func (*Certificate) CheckCRLSignature +

func (*Certificate) CheckCRLSignature

func (c *Certificate) CheckCRLSignature(crl *pkix.CertificateList) error
CheckCRLSignature checks that the signature in crl is from c. -

func (*Certificate) CheckSignature +

func (*Certificate) CheckSignature

func (c *Certificate) CheckSignature(algo SignatureAlgorithm, signed, signature []byte) error
CheckSignature verifies that signature is a valid signature over signed from c's public key. -

func (*Certificate) CheckSignatureFrom +

func (*Certificate) CheckSignatureFrom

func (c *Certificate) CheckSignatureFrom(parent *Certificate) error
CheckSignatureFrom verifies that the signature on c is a valid signature from parent. -

func (*Certificate) CreateCRL +

func (*Certificate) CreateCRL

func (c *Certificate) CreateCRL(rand io.Reader, priv interface{}, revokedCerts []pkix.RevokedCertificate, now, expiry time.Time) (crlBytes []byte, err error)
CreateCRL returns a DER encoded CRL, signed by this Certificate, that contains the given list of revoked certificates. -

func (*Certificate) Equal +

func (*Certificate) Equal

func (c *Certificate) Equal(other *Certificate) bool
-

func (*Certificate) Verify +

func (*Certificate) Verify

func (c *Certificate) Verify(opts VerifyOptions) (chains [][]*Certificate, err error)
@@ -581,14 +581,14 @@ Example: panic("failed to verify certificate: " + err.Error()) } -

func (*Certificate) VerifyHostname +

func (*Certificate) VerifyHostname

func (c *Certificate) VerifyHostname(h string) error
VerifyHostname returns nil if c is a valid certificate for the named host. Otherwise it returns an error describing the mismatch. -

type CertificateInvalidError +

type CertificateInvalidError

type CertificateInvalidError struct {
     Cert   *Certificate
@@ -599,12 +599,12 @@ Otherwise it returns an error describing the mismatch.
 CertificateInvalidError results when an odd error occurs. Users of this library
 probably want to handle all these errors uniformly.
 
-

func (CertificateInvalidError) Error +

func (CertificateInvalidError) Error

func (e CertificateInvalidError) Error() string
-

type CertificateRequest +

type CertificateRequest

type CertificateRequest struct {
     Raw                      []byte // Complete ASN.1 DER content (CSR, signature algorithm and signature).
@@ -647,20 +647,20 @@ probably want to handle all these errors uniformly.
 
 CertificateRequest represents a PKCS #10, certificate signature request.
 
-

func ParseCertificateRequest +

func ParseCertificateRequest

func ParseCertificateRequest(asn1Data []byte) (*CertificateRequest, error)
ParseCertificateRequest parses a single certificate request from the given ASN.1 DER data. -

func (*CertificateRequest) CheckSignature +

func (*CertificateRequest) CheckSignature

func (c *CertificateRequest) CheckSignature() error
CheckSignature reports whether the signature on c is valid. -

type ConstraintViolationError +

type ConstraintViolationError

type ConstraintViolationError struct{}
@@ -668,12 +668,12 @@ ConstraintViolationError results when a requested usage is not permitted by a certificate. For example: checking a signature when the public key isn't a certificate signing key. -

func (ConstraintViolationError) Error +

func (ConstraintViolationError) Error

func (ConstraintViolationError) Error() string
-

type ExtKeyUsage +

type ExtKeyUsage

type ExtKeyUsage int
@@ -698,7 +698,7 @@ key. Each of the ExtKeyUsage* constants define a unique action. )
-

type HostnameError +

type HostnameError

type HostnameError struct {
     Certificate *Certificate
@@ -708,23 +708,23 @@ key. Each of the ExtKeyUsage* constants define a unique action.
 HostnameError results when the set of authorized names doesn't match the
 requested name.
 
-

func (HostnameError) Error +

func (HostnameError) Error

func (h HostnameError) Error() string
-

type InsecureAlgorithmError +

type InsecureAlgorithmError

type InsecureAlgorithmError SignatureAlgorithm
An InsecureAlgorithmError -

func (InsecureAlgorithmError) Error +

func (InsecureAlgorithmError) Error

func (e InsecureAlgorithmError) Error() string
-

type InvalidReason +

type InvalidReason

type InvalidReason int
@@ -770,7 +770,7 @@ An InsecureAlgorithmError )
-

type KeyUsage +

type KeyUsage

type KeyUsage int
@@ -790,7 +790,7 @@ bitmap of the KeyUsage* constants. )
-

type PEMCipher +

type PEMCipher

type PEMCipher int
@@ -805,7 +805,7 @@ bitmap of the KeyUsage* constants. Possible values for the EncryptPEMBlock encryption algorithm. -

type PublicKeyAlgorithm +

type PublicKeyAlgorithm

type PublicKeyAlgorithm int
@@ -818,12 +818,12 @@ Possible values for the EncryptPEMBlock encryption algorithm. )
-

func (PublicKeyAlgorithm) String +

func (PublicKeyAlgorithm) String

func (algo PublicKeyAlgorithm) String() string
-

type SignatureAlgorithm +

type SignatureAlgorithm

type SignatureAlgorithm int
@@ -848,12 +848,12 @@ Possible values for the EncryptPEMBlock encryption algorithm. )
-

func (SignatureAlgorithm) String +

func (SignatureAlgorithm) String

func (algo SignatureAlgorithm) String() string
-

type SystemRootsError +

type SystemRootsError

type SystemRootsError struct {
     Err error
@@ -861,22 +861,22 @@ Possible values for the EncryptPEMBlock encryption algorithm.
 
 SystemRootsError results when we fail to load the system root certificates.
 
-

func (SystemRootsError) Error +

func (SystemRootsError) Error

func (se SystemRootsError) Error() string
-

type UnhandledCriticalExtension +

type UnhandledCriticalExtension

type UnhandledCriticalExtension struct{}
-

func (UnhandledCriticalExtension) Error +

func (UnhandledCriticalExtension) Error

func (h UnhandledCriticalExtension) Error() string
-

type UnknownAuthorityError +

type UnknownAuthorityError

type UnknownAuthorityError struct {
     Cert *Certificate
@@ -885,12 +885,12 @@ SystemRootsError results when we fail to load the system root certificates.
 
 UnknownAuthorityError results when the certificate issuer is unknown
 
-

func (UnknownAuthorityError) Error +

func (UnknownAuthorityError) Error

func (e UnknownAuthorityError) Error() string
-

type VerifyOptions +

type VerifyOptions

type VerifyOptions struct {
     DNSName       string
diff --git a/Source/database/sql/driver/driver.md b/Source/database/sql/driver/driver.md
index f31cbbe..94a0ecb 100644
--- a/Source/database/sql/driver/driver.md
+++ b/Source/database/sql/driver/driver.md
@@ -56,7 +56,7 @@ Most code should use package sql.
 - [type Valuer](#Valuer)
 
 ### Package files
- [driver.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/database/sql/driver/driver.go) [types.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/database/sql/driver/types.go)
+ [driver.go](//github.com/golang/go/blob/release-branch.go1.10/src/database/sql/driver/driver.go) [types.go](//github.com/golang/go/blob/release-branch.go1.10/src/database/sql/driver/types.go)
 
 

Variables

@@ -128,19 +128,19 @@ String is a ValueConverter that converts its input to a string. If the value is already a string or []byte, it's unchanged. If the value is of another type, conversion to string is done with fmt.Sprintf("%v", v). -

func IsScanValue +

func IsScanValue

func IsScanValue(v interface{}) bool
IsScanValue is equivalent to IsValue. It exists for compatibility. -

func IsValue +

func IsValue

func IsValue(v interface{}) bool
IsValue reports whether v is a valid Value parameter type. -

type ColumnConverter +

type ColumnConverter

type ColumnConverter interface {
     // ColumnConverter returns a ValueConverter for the provided
@@ -155,7 +155,7 @@ of its own columns' types and can convert from any type to a driver Value.
 
 Deprecated: Drivers should implement NamedValueChecker.
 
-

type Conn +

type Conn

type Conn interface {
     // Prepare returns a prepared statement, bound to this connection.
@@ -182,7 +182,7 @@ goroutines.
 
 Conn is assumed to be stateful.
 
-

type ConnBeginTx +

type ConnBeginTx

type ConnBeginTx interface {
     // BeginTx starts and returns a new transaction.
@@ -202,7 +202,7 @@ Conn is assumed to be stateful.
 
 ConnBeginTx enhances the Conn interface with context and TxOptions.
 
-

type ConnPrepareContext +

type ConnPrepareContext

type ConnPrepareContext interface {
     // PrepareContext returns a prepared statement, bound to this connection.
@@ -213,7 +213,7 @@ ConnBeginTx enhances the Conn interface with context and TxOptions.
 
 ConnPrepareContext enhances the Conn interface with context.
 
-

type Connector +

type Connector

type Connector interface {
     // Connect returns a connection to the database.
@@ -243,7 +243,7 @@ sql.DB constructors, or returned by DriverContext's OpenConnector method, to
 allow drivers access to context and to avoid repeated parsing of driver
 configuration.
 
-

type Driver +

type Driver

type Driver interface {
     // Open returns a new connection to the database.
@@ -263,7 +263,7 @@ Driver is the interface that must be implemented by a database driver.
 Database drivers may implement DriverContext for access to contexts and to parse
 the name only once for a pool of connections, instead of once per connection.
 
-

type DriverContext +

type DriverContext

type DriverContext interface {
     // OpenConnector must parse the name in the same format that Driver.Open
@@ -277,7 +277,7 @@ needed connection, instead of invoking the Driver's Open method for each
 connection. The two-step sequence allows drivers to parse the name just once and
 also provides access to per-Conn contexts.
 
-

type Execer +

type Execer

type Execer interface {
     Exec(query string, args []Value) (Result, error)
@@ -293,7 +293,7 @@ Exec may return ErrSkip.
 
 Deprecated: Drivers should implement ExecerContext instead.
 
-

type ExecerContext +

type ExecerContext

type ExecerContext interface {
     ExecContext(ctx context.Context, query string, args []NamedValue) (Result, error)
@@ -310,7 +310,7 @@ ExecerContext may return ErrSkip.
 ExecerContext must honor the context timeout and return when the context is
 canceled.
 
-

type IsolationLevel +

type IsolationLevel

type IsolationLevel int
@@ -319,7 +319,7 @@ IsolationLevel is the transaction isolation level stored in TxOptions. This type should be considered identical to sql.IsolationLevel along with any values defined on it. -

type NamedValue +

type NamedValue

type NamedValue struct {
     // If the Name is not empty it should be used for the parameter identifier and
@@ -337,7 +337,7 @@ values defined on it.
 
 NamedValue holds both the value name and value.
 
-

type NamedValueChecker +

type NamedValueChecker

type NamedValueChecker interface {
     // CheckNamedValue is called before passing arguments to the driver
@@ -362,7 +362,7 @@ If ErrSkip is returned the column converter error checking path is used for the
 argument. Drivers may wish to return ErrSkip after they have exhausted their own
 special cases.
 
-

type NotNull +

type NotNull

type NotNull struct {
     Converter ValueConverter
@@ -371,12 +371,12 @@ special cases.
 NotNull is a type that implements ValueConverter by disallowing nil values but
 otherwise delegating to another ValueConverter.
 
-

func (NotNull) ConvertValue +

func (NotNull) ConvertValue

func (n NotNull) ConvertValue(v interface{}) (Value, error)
-

type Null +

type Null

type Null struct {
     Converter ValueConverter
@@ -385,12 +385,12 @@ otherwise delegating to another ValueConverter.
 Null is a type that implements ValueConverter by allowing nil values but
 otherwise delegating to another ValueConverter.
 
-

func (Null) ConvertValue +

func (Null) ConvertValue

func (n Null) ConvertValue(v interface{}) (Value, error)
-

type Pinger +

type Pinger

type Pinger interface {
     Ping(ctx context.Context) error
@@ -404,7 +404,7 @@ DB.PingContext will check if there is at least one Conn available.
 If Conn.Ping returns ErrBadConn, DB.Ping and DB.PingContext will remove the Conn
 from pool.
 
-

type Queryer +

type Queryer

type Queryer interface {
     Query(query string, args []Value) (Rows, error)
@@ -420,7 +420,7 @@ Query may return ErrSkip.
 
 Deprecated: Drivers should implement QueryerContext instead.
 
-

type QueryerContext +

type QueryerContext

type QueryerContext interface {
     QueryContext(ctx context.Context, query string, args []NamedValue) (Rows, error)
@@ -437,7 +437,7 @@ QueryerContext may return ErrSkip.
 QueryerContext must honor the context timeout and return when the context is
 canceled.
 
-

type Result +

type Result

type Result interface {
     // LastInsertId returns the database's auto-generated ID
@@ -452,7 +452,7 @@ canceled.
 
 Result is the result of a query execution.
 
-

type Rows +

type Rows

type Rows interface {
     // Columns returns the names of the columns. The number of
@@ -478,24 +478,24 @@ Result is the result of a query execution.
 
 Rows is an iterator over an executed query's results.
 
-

type RowsAffected +

type RowsAffected

type RowsAffected int64
RowsAffected implements Result for an INSERT or UPDATE operation which mutates a number of rows. -

func (RowsAffected) LastInsertId +

func (RowsAffected) LastInsertId

func (RowsAffected) LastInsertId() (int64, error)
-

func (RowsAffected) RowsAffected +

func (RowsAffected) RowsAffected

func (v RowsAffected) RowsAffected() (int64, error)
-

type RowsColumnTypeDatabaseTypeName +

type RowsColumnTypeDatabaseTypeName

type RowsColumnTypeDatabaseTypeName interface {
     Rows
@@ -508,7 +508,7 @@ Examples of returned types: "VARCHAR", "NVARCHAR", "VARCHAR2", "CHAR", "TEXT",
 "DECIMAL", "SMALLINT", "INT", "BIGINT", "BOOL", "[]BIGINT", "JSONB", "XML",
 "TIMESTAMP".
 
-

type RowsColumnTypeLength +

type RowsColumnTypeLength

type RowsColumnTypeLength interface {
     Rows
@@ -528,7 +528,7 @@ returned values for various types:
     int           (0, false)
     bytea(30)     (30, true)
 
-

type RowsColumnTypeNullable +

type RowsColumnTypeNullable

type RowsColumnTypeNullable interface {
     Rows
@@ -539,7 +539,7 @@ RowsColumnTypeNullable may be implemented by Rows. The nullable value should be
 true if it is known the column may be null, or false if the column is known to
 be not nullable. If the column nullability is unknown, ok should be false.
 
-

type RowsColumnTypePrecisionScale +

type RowsColumnTypePrecisionScale

type RowsColumnTypePrecisionScale interface {
     Rows
@@ -554,7 +554,7 @@ The following are examples of returned values for various types:
     int               (0, 0, false)
     decimal           (math.MaxInt64, math.MaxInt64, true)
 
-

type RowsColumnTypeScanType +

type RowsColumnTypeScanType

type RowsColumnTypeScanType interface {
     Rows
@@ -565,7 +565,7 @@ RowsColumnTypeScanType may be implemented by Rows. It should return the value
 type that can be used to scan types into. For example, the database column type
 "bigint" this should return "reflect.TypeOf(int64(0))".
 
-

type RowsNextResultSet +

type RowsNextResultSet

type RowsNextResultSet interface {
     Rows
@@ -584,7 +584,7 @@ type that can be used to scan types into. For example, the database column type
 RowsNextResultSet extends the Rows interface by providing a way to signal the
 driver to advance to the next result set.
 
-

type SessionResetter +

type SessionResetter

type SessionResetter interface {
     // ResetSession is called while a connection is in the connection
@@ -599,7 +599,7 @@ driver to advance to the next result set.
 SessionResetter may be implemented by Conn to allow drivers to reset the session
 state associated with the connection and to signal a bad connection.
 
-

type Stmt +

type Stmt

type Stmt interface {
     // Close closes the statement.
@@ -635,7 +635,7 @@ state associated with the connection and to signal a bad connection.
 Stmt is a prepared statement. It is bound to a Conn and not used by multiple
 goroutines concurrently.
 
-

type StmtExecContext +

type StmtExecContext

type StmtExecContext interface {
     // ExecContext executes a query that doesn't return rows, such
@@ -647,7 +647,7 @@ goroutines concurrently.
 
 StmtExecContext enhances the Stmt interface by providing Exec with context.
 
-

type StmtQueryContext +

type StmtQueryContext

type StmtQueryContext interface {
     // QueryContext executes a query that may return rows, such as a
@@ -659,7 +659,7 @@ StmtExecContext enhances the Stmt interface by providing Exec with context.
 
 StmtQueryContext enhances the Stmt interface by providing Query with context.
 
-

type Tx +

type Tx

type Tx interface {
     Commit() error
@@ -668,7 +668,7 @@ StmtQueryContext enhances the Stmt interface by providing Query with context.
 
 Tx is a transaction.
 
-

type TxOptions +

type TxOptions

type TxOptions struct {
     Isolation IsolationLevel
@@ -679,7 +679,7 @@ TxOptions holds the transaction options.
 
 This type should be considered identical to sql.TxOptions.
 
-

type Value +

type Value

type Value interface{}
@@ -694,7 +694,7 @@ one of these types: string time.Time -

type ValueConverter +

type ValueConverter

type ValueConverter interface {
     // ConvertValue converts a value to a driver Value.
@@ -718,7 +718,7 @@ ValueConverters have several uses:
     * by the sql package, for converting from a driver's Value type
       to a user's type in a scan.
 
-

type Valuer +

type Valuer

type Valuer interface {
     // Value returns a driver Value.
diff --git a/Source/database/sql/sql.md b/Source/database/sql/sql.md
index de2a50b..4d378f4 100644
--- a/Source/database/sql/sql.md
+++ b/Source/database/sql/sql.md
@@ -117,7 +117,7 @@ For usage examples, see the wiki page at https://golang.org/s/sqlwiki.
 - [DB.Query (MultipleResultSets)](#exampleDB_Query_multipleResultSets)
 
 ### Package files
- [convert.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/database/sql/convert.go) [ctxutil.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/database/sql/ctxutil.go) [sql.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/database/sql/sql.go)
+ [convert.go](//github.com/golang/go/blob/release-branch.go1.10/src/database/sql/convert.go) [ctxutil.go](//github.com/golang/go/blob/release-branch.go1.10/src/database/sql/ctxutil.go) [sql.go](//github.com/golang/go/blob/release-branch.go1.10/src/database/sql/sql.go)
 
 

Variables

@@ -137,20 +137,20 @@ Scan. ErrTxDone is returned by any operation that is performed on a transaction that has already been committed or rolled back. -

func Drivers +

func Drivers

func Drivers() []string
Drivers returns a sorted list of the names of the registered drivers. -

func Register +

func Register

func Register(name string, driver driver.Driver)
Register makes a database driver available by the provided name. If Register is called twice with the same name or if driver is nil, it panics. -

type ColumnType +

type ColumnType

type ColumnType struct {
     // contains filtered or unexported fields
@@ -158,7 +158,7 @@ called twice with the same name or if driver is nil, it panics.
 
 ColumnType contains the name and type of a column.
 
-

func (*ColumnType) DatabaseTypeName +

func (*ColumnType) DatabaseTypeName

func (ci *ColumnType) DatabaseTypeName() string
@@ -168,14 +168,14 @@ driver documentation for a list of driver data types. Length specifiers are not included. Common type include "VARCHAR", "TEXT", "NVARCHAR", "DECIMAL", "BOOL", "INT", "BIGINT". -

func (*ColumnType) DecimalSize +

func (*ColumnType) DecimalSize

func (ci *ColumnType) DecimalSize() (precision, scale int64, ok bool)
DecimalSize returns the scale and precision of a decimal type. If not applicable or if not supported ok is false. -

func (*ColumnType) Length +

func (*ColumnType) Length

func (ci *ColumnType) Length() (length int64, ok bool)
@@ -184,20 +184,20 @@ text and binary field types. If the type length is unbounded the value will be math.MaxInt64 (any database limits will still apply). If the column type is not variable length, such as an int, or if not supported by the driver ok is false. -

func (*ColumnType) Name +

func (*ColumnType) Name

func (ci *ColumnType) Name() string
Name returns the name or alias of the column. -

func (*ColumnType) Nullable +

func (*ColumnType) Nullable

func (ci *ColumnType) Nullable() (nullable, ok bool)
Nullable returns whether the column may be null. If a driver does not support this property ok will be false. -

func (*ColumnType) ScanType +

func (*ColumnType) ScanType

func (ci *ColumnType) ScanType() reflect.Type
@@ -205,7 +205,7 @@ ScanType returns a Go type suitable for scanning into using Rows.Scan. If a driver does not support this property ScanType will return the type of an empty interface. -

type Conn +

type Conn

type Conn struct {
     // contains filtered or unexported fields
@@ -220,7 +220,7 @@ so concurrently with a running query.
 
 After a call to Close, all operations on the connection fail with ErrConnDone.
 
-

func (*Conn) BeginTx +

func (*Conn) BeginTx

func (c *Conn) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error)
@@ -234,7 +234,7 @@ The provided TxOptions is optional and may be nil if defaults should be used. If a non-default isolation level is used that the driver doesn't support, an error will be returned. -

func (*Conn) Close +

func (*Conn) Close

func (c *Conn) Close() error
@@ -243,20 +243,20 @@ Close will return with ErrConnDone. Close is safe to call concurrently with other operations and will block until all other operations finish. It may be useful to first cancel any used context and then call close directly after. -

func (*Conn) ExecContext +

func (*Conn) ExecContext

func (c *Conn) ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error)
ExecContext executes a query without returning any rows. The args are for any placeholder parameters in the query. -

func (*Conn) PingContext +

func (*Conn) PingContext

func (c *Conn) PingContext(ctx context.Context) error
PingContext verifies the connection to the database is still alive. -

func (*Conn) PrepareContext +

func (*Conn) PrepareContext

func (c *Conn) PrepareContext(ctx context.Context, query string) (*Stmt, error)
@@ -268,14 +268,14 @@ is no longer needed. The provided context is used for the preparation of the statement, not for the execution of the statement. -

func (*Conn) QueryContext +

func (*Conn) QueryContext

func (c *Conn) QueryContext(ctx context.Context, query string, args ...interface{}) (*Rows, error)
QueryContext executes a query that returns rows, typically a SELECT. The args are for any placeholder parameters in the query. -

func (*Conn) QueryRowContext +

func (*Conn) QueryRowContext

func (c *Conn) QueryRowContext(ctx context.Context, query string, args ...interface{}) *Row
@@ -285,7 +285,7 @@ Scan method is called. If the query selects no rows, the *Row's Scan will return ErrNoRows. Otherwise, the *Row's Scan scans the first selected row and discards the rest. -

type DB +

type DB

type DB struct {
     // contains filtered or unexported fields
@@ -302,7 +302,7 @@ or Rollback is called on the transaction, that transaction's connection is
 returned to DB's idle connection pool. The pool size can be controlled with
 SetMaxIdleConns.
 
-

func Open +

func Open

func Open(driverName, dataSourceName string) (*DB, error)
@@ -321,7 +321,7 @@ The returned DB is safe for concurrent use by multiple goroutines and maintains its own pool of idle connections. Thus, the Open function should be called just once. It is rarely necessary to close a DB. -

func OpenDB +

func OpenDB

func OpenDB(c driver.Connector) *DB
@@ -339,14 +339,14 @@ The returned DB is safe for concurrent use by multiple goroutines and maintains its own pool of idle connections. Thus, the OpenDB function should be called just once. It is rarely necessary to close a DB. -

func (*DB) Begin +

func (*DB) Begin

func (db *DB) Begin() (*Tx, error)
Begin starts a transaction. The default isolation level is dependent on the driver. -

func (*DB) BeginTx +

func (*DB) BeginTx

func (db *DB) BeginTx(ctx context.Context, opts *TxOptions) (*Tx, error)
@@ -360,7 +360,7 @@ The provided TxOptions is optional and may be nil if defaults should be used. If a non-default isolation level is used that the driver doesn't support, an error will be returned. -

func (*DB) Close +

func (*DB) Close

func (db *DB) Close() error
@@ -369,7 +369,7 @@ Close closes the database, releasing any open resources. It is rare to Close a DB, as the DB handle is meant to be long-lived and shared between many goroutines. -

func (*DB) Conn +

func (*DB) Conn

func (db *DB) Conn(ctx context.Context) (*Conn, error)
@@ -381,41 +381,41 @@ run in the same database session. Every Conn must be returned to the database pool after use by calling Conn.Close. -

func (*DB) Driver +

func (*DB) Driver

func (db *DB) Driver() driver.Driver
Driver returns the database's underlying driver. -

func (*DB) Exec +

func (*DB) Exec

func (db *DB) Exec(query string, args ...interface{}) (Result, error)
Exec executes a query without returning any rows. The args are for any placeholder parameters in the query. -

func (*DB) ExecContext +

func (*DB) ExecContext

func (db *DB) ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error)
ExecContext executes a query without returning any rows. The args are for any placeholder parameters in the query. -

func (*DB) Ping +

func (*DB) Ping

func (db *DB) Ping() error
Ping verifies a connection to the database is still alive, establishing a connection if necessary. -

func (*DB) PingContext +

func (*DB) PingContext

func (db *DB) PingContext(ctx context.Context) error
PingContext verifies a connection to the database is still alive, establishing a connection if necessary. -

func (*DB) Prepare +

func (*DB) Prepare

func (db *DB) Prepare(query string) (*Stmt, error)
@@ -424,7 +424,7 @@ queries or executions may be run concurrently from the returned statement. The caller must call the statement's Close method when the statement is no longer needed. -

func (*DB) PrepareContext +

func (*DB) PrepareContext

func (db *DB) PrepareContext(ctx context.Context, query string) (*Stmt, error)
@@ -436,7 +436,7 @@ is no longer needed. The provided context is used for the preparation of the statement, not for the execution of the statement. -

func (*DB) Query +

func (*DB) Query

func (db *DB) Query(query string, args ...interface{}) (*Rows, error)
@@ -527,14 +527,14 @@ Example: log.Fatal(err) } -

func (*DB) QueryContext +

func (*DB) QueryContext

func (db *DB) QueryContext(ctx context.Context, query string, args ...interface{}) (*Rows, error)
QueryContext executes a query that returns rows, typically a SELECT. The args are for any placeholder parameters in the query. -

func (*DB) QueryRow +

func (*DB) QueryRow

func (db *DB) QueryRow(query string, args ...interface{}) *Row
@@ -558,7 +558,7 @@ Example: fmt.Printf("Username is %s\n", username) } -

func (*DB) QueryRowContext +

func (*DB) QueryRowContext

func (db *DB) QueryRowContext(ctx context.Context, query string, args ...interface{}) *Row
@@ -568,7 +568,7 @@ Scan method is called. If the query selects no rows, the *Row's Scan will return ErrNoRows. Otherwise, the *Row's Scan scans the first selected row and discards the rest. -

func (*DB) SetConnMaxLifetime +

func (*DB) SetConnMaxLifetime

func (db *DB) SetConnMaxLifetime(d time.Duration)
@@ -578,7 +578,7 @@ Expired connections may be closed lazily before reuse. If d <= 0, connections are reused forever. -

func (*DB) SetMaxIdleConns +

func (*DB) SetMaxIdleConns

func (db *DB) SetMaxIdleConns(n int)
@@ -590,7 +590,7 @@ new MaxIdleConns will be reduced to match the MaxOpenConns limit If n <= 0, no idle connections are retained. -

func (*DB) SetMaxOpenConns +

func (*DB) SetMaxOpenConns

func (db *DB) SetMaxOpenConns(n int)
@@ -603,13 +603,13 @@ limit If n <= 0, then there is no limit on the number of open connections. The default is 0 (unlimited). -

func (*DB) Stats +

func (*DB) Stats

func (db *DB) Stats() DBStats
Stats returns database statistics. -

type DBStats +

type DBStats

type DBStats struct {
     // OpenConnections is the number of open connections to the database.
@@ -618,7 +618,7 @@ Stats returns database statistics.
 
 DBStats contains database statistics.
 
-

type IsolationLevel +

type IsolationLevel

type IsolationLevel int
@@ -640,7 +640,7 @@ not support a given isolation level an error may be returned. See https://en.wikipedia.org/wiki/Isolation_(database_systems)#Isolation_levels. -

type NamedArg +

type NamedArg

type NamedArg struct {
 
@@ -665,7 +665,7 @@ statement.
 
 For a more concise way to create NamedArg values, see the Named function.
 
-

func Named +

func Named

func Named(name string, value interface{}) NamedArg
@@ -682,7 +682,7 @@ Example usage: sql.Named("end", endTime), ) -

type NullBool +

type NullBool

type NullBool struct {
     Bool  bool
@@ -692,19 +692,19 @@ Example usage:
 NullBool represents a bool that may be null. NullBool implements the Scanner
 interface so it can be used as a scan destination, similar to NullString.
 
-

func (*NullBool) Scan +

func (*NullBool) Scan

func (n *NullBool) Scan(value interface{}) error
Scan implements the Scanner interface. -

func (NullBool) Value +

func (NullBool) Value

func (n NullBool) Value() (driver.Value, error)
Value implements the driver Valuer interface. -

type NullFloat64 +

type NullFloat64

type NullFloat64 struct {
     Float64 float64
@@ -715,19 +715,19 @@ NullFloat64 represents a float64 that may be null. NullFloat64 implements the
 Scanner interface so it can be used as a scan destination, similar to
 NullString.
 
-

func (*NullFloat64) Scan +

func (*NullFloat64) Scan

func (n *NullFloat64) Scan(value interface{}) error
Scan implements the Scanner interface. -

func (NullFloat64) Value +

func (NullFloat64) Value

func (n NullFloat64) Value() (driver.Value, error)
Value implements the driver Valuer interface. -

type NullInt64 +

type NullInt64

type NullInt64 struct {
     Int64 int64
@@ -737,19 +737,19 @@ Value implements the driver Valuer interface.
 NullInt64 represents an int64 that may be null. NullInt64 implements the Scanner
 interface so it can be used as a scan destination, similar to NullString.
 
-

func (*NullInt64) Scan +

func (*NullInt64) Scan

func (n *NullInt64) Scan(value interface{}) error
Scan implements the Scanner interface. -

func (NullInt64) Value +

func (NullInt64) Value

func (n NullInt64) Value() (driver.Value, error)
Value implements the driver Valuer interface. -

type NullString +

type NullString

type NullString struct {
     String string
@@ -768,19 +768,19 @@ Scanner interface so it can be used as a scan destination:
        // NULL value
     }
 
-

func (*NullString) Scan +

func (*NullString) Scan

func (ns *NullString) Scan(value interface{}) error
Scan implements the Scanner interface. -

func (NullString) Value +

func (NullString) Value

func (ns NullString) Value() (driver.Value, error)
Value implements the driver Valuer interface. -

type Out +

type Out

type Out struct {
 
@@ -804,7 +804,7 @@ Example usage:
     var outArg string
     _, err := db.ExecContext(ctx, "ProcName", sql.Named("Arg1", sql.Out{Dest: &outArg}))
 
-

type RawBytes +

type RawBytes

type RawBytes []byte
@@ -812,7 +812,7 @@ RawBytes is a byte slice that holds a reference to memory owned by the database itself. After a Scan into a RawBytes, the slice is only valid until the next call to Next, Scan, or Close. -

type Result +

type Result

type Result interface {
     // LastInsertId returns the integer generated by the database
@@ -830,7 +830,7 @@ call to Next, Scan, or Close.
 
 A Result summarizes an executed SQL command.
 
-

type Row +

type Row

type Row struct {
     // contains filtered or unexported fields
@@ -838,7 +838,7 @@ A Result summarizes an executed SQL command.
 
 Row is the result of calling QueryRow to select a single row.
 
-

func (*Row) Scan +

func (*Row) Scan

func (r *Row) Scan(dest ...interface{}) error
@@ -847,7 +847,7 @@ See the documentation on Rows.Scan for details. If more than one row matches the query, Scan uses the first row and discards the rest. If no row matches the query, Scan returns ErrNoRows. -

type Rows +

type Rows

type Rows struct {
     // contains filtered or unexported fields
@@ -868,7 +868,7 @@ result set. Use Next to advance through the rows:
     err = rows.Err() // get any error encountered during iteration
     ...
 
-

func (*Rows) Close +

func (*Rows) Close

func (rs *Rows) Close() error
@@ -877,28 +877,28 @@ returns false and there are no further result sets, the Rows are closed automatically and it will suffice to check the result of Err. Close is idempotent and does not affect the result of Err. -

func (*Rows) ColumnTypes +

func (*Rows) ColumnTypes

func (rs *Rows) ColumnTypes() ([]*ColumnType, error)
ColumnTypes returns column information such as column type, length, and nullable. Some information may not be available from some drivers. -

func (*Rows) Columns +

func (*Rows) Columns

func (rs *Rows) Columns() ([]string, error)
Columns returns the column names. Columns returns an error if the rows are closed, or if the rows are from QueryRow and there was a deferred error. -

func (*Rows) Err +

func (*Rows) Err

func (rs *Rows) Err() error
Err returns the error, if any, that was encountered during iteration. Err may be called after an explicit or implicit Close. -

func (*Rows) Next +

func (*Rows) Next

func (rs *Rows) Next() bool
@@ -909,7 +909,7 @@ cases. Every call to Scan, even the first one, must be preceded by a call to Next. -

func (*Rows) NextResultSet +

func (*Rows) NextResultSet

func (rs *Rows) NextResultSet() bool
@@ -922,7 +922,7 @@ After calling NextResultSet, the Next method should always be called before scanning. If there are further result sets they may not have rows in the result set. -

func (*Rows) Scan +

func (*Rows) Scan

func (rs *Rows) Scan(dest ...interface{}) error
@@ -975,7 +975,7 @@ Source values of type bool may be scanned into types *bool, *interface{}, For scanning into *bool, the source may be true, false, 1, 0, or string inputs parseable by strconv.ParseBool. -

type Scanner +

type Scanner

type Scanner interface {
     // Scan assigns a value from a database driver.
@@ -997,7 +997,7 @@ parseable by strconv.ParseBool.
 
 Scanner is an interface used by Scan.
 
-

type Stmt +

type Stmt

type Stmt struct {
     // contains filtered or unexported fields
@@ -1006,41 +1006,41 @@ Scanner is an interface used by Scan.
 Stmt is a prepared statement. A Stmt is safe for concurrent use by multiple
 goroutines.
 
-

func (*Stmt) Close +

func (*Stmt) Close

func (s *Stmt) Close() error
Close closes the statement. -

func (*Stmt) Exec +

func (*Stmt) Exec

func (s *Stmt) Exec(args ...interface{}) (Result, error)
Exec executes a prepared statement with the given arguments and returns a Result summarizing the effect of the statement. -

func (*Stmt) ExecContext +

func (*Stmt) ExecContext

func (s *Stmt) ExecContext(ctx context.Context, args ...interface{}) (Result, error)
ExecContext executes a prepared statement with the given arguments and returns a Result summarizing the effect of the statement. -

func (*Stmt) Query +

func (*Stmt) Query

func (s *Stmt) Query(args ...interface{}) (*Rows, error)
Query executes a prepared query statement with the given arguments and returns the query results as a *Rows. -

func (*Stmt) QueryContext +

func (*Stmt) QueryContext

func (s *Stmt) QueryContext(ctx context.Context, args ...interface{}) (*Rows, error)
QueryContext executes a prepared query statement with the given arguments and returns the query results as a *Rows. -

func (*Stmt) QueryRow +

func (*Stmt) QueryRow

func (s *Stmt) QueryRow(args ...interface{}) *Row
@@ -1055,7 +1055,7 @@ Example usage: var name string err := nameByUseridStmt.QueryRow(id).Scan(&name) -

func (*Stmt) QueryRowContext +

func (*Stmt) QueryRowContext

func (s *Stmt) QueryRowContext(ctx context.Context, args ...interface{}) *Row
@@ -1070,7 +1070,7 @@ Example usage: var name string err := nameByUseridStmt.QueryRowContext(ctx, id).Scan(&name) -

type Tx +

type Tx

type Tx struct {
     // contains filtered or unexported fields
@@ -1086,27 +1086,27 @@ ErrTxDone.
 The statements prepared for a transaction by calling the transaction's Prepare
 or Stmt methods are closed by the call to Commit or Rollback.
 
-

func (*Tx) Commit +

func (*Tx) Commit

func (tx *Tx) Commit() error
Commit commits the transaction. -

func (*Tx) Exec +

func (*Tx) Exec

func (tx *Tx) Exec(query string, args ...interface{}) (Result, error)
Exec executes a query that doesn't return rows. For example: an INSERT and UPDATE. -

func (*Tx) ExecContext +

func (*Tx) ExecContext

func (tx *Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error)
ExecContext executes a query that doesn't return rows. For example: an INSERT and UPDATE. -

func (*Tx) Prepare +

func (*Tx) Prepare

func (tx *Tx) Prepare(query string) (*Stmt, error)
@@ -1117,7 +1117,7 @@ once the transaction has been committed or rolled back. To use an existing prepared statement on this transaction, see Tx.Stmt. -

func (*Tx) PrepareContext +

func (*Tx) PrepareContext

func (tx *Tx) PrepareContext(ctx context.Context, query string) (*Stmt, error)
@@ -1132,19 +1132,19 @@ The provided context will be used for the preparation of the context, not for the execution of the returned statement. The returned statement will run in the transaction context. -

func (*Tx) Query +

func (*Tx) Query

func (tx *Tx) Query(query string, args ...interface{}) (*Rows, error)
Query executes a query that returns rows, typically a SELECT. -

func (*Tx) QueryContext +

func (*Tx) QueryContext

func (tx *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*Rows, error)
QueryContext executes a query that returns rows, typically a SELECT. -

func (*Tx) QueryRow +

func (*Tx) QueryRow

func (tx *Tx) QueryRow(query string, args ...interface{}) *Row
@@ -1153,7 +1153,7 @@ always returns a non-nil value. Errors are deferred until Row's Scan method is called. If the query selects no rows, the *Row's Scan will return ErrNoRows. Otherwise, the *Row's Scan scans the first selected row and discards the rest. -

func (*Tx) QueryRowContext +

func (*Tx) QueryRowContext

func (tx *Tx) QueryRowContext(ctx context.Context, query string, args ...interface{}) *Row
@@ -1163,13 +1163,13 @@ Scan method is called. If the query selects no rows, the *Row's Scan will return ErrNoRows. Otherwise, the *Row's Scan scans the first selected row and discards the rest. -

func (*Tx) Rollback +

func (*Tx) Rollback

func (tx *Tx) Rollback() error
Rollback aborts the transaction. -

func (*Tx) Stmt +

func (*Tx) Stmt

func (tx *Tx) Stmt(stmt *Stmt) *Stmt
@@ -1187,7 +1187,7 @@ Example: The returned statement operates within the transaction and will be closed when the transaction has been committed or rolled back. -

func (*Tx) StmtContext +

func (*Tx) StmtContext

func (tx *Tx) StmtContext(ctx context.Context, stmt *Stmt) *Stmt
@@ -1208,7 +1208,7 @@ execution of the statement. The returned statement operates within the transaction and will be closed when the transaction has been committed or rolled back. -

type TxOptions +

type TxOptions

type TxOptions struct {
     // Isolation is the transaction isolation level.
diff --git a/Source/debug/dwarf/dwarf.md b/Source/debug/dwarf/dwarf.md
index a990768..d2aaae6 100644
--- a/Source/debug/dwarf/dwarf.md
+++ b/Source/debug/dwarf/dwarf.md
@@ -92,7 +92,7 @@ http://dwarfstd.org/doc/dwarf-2.0.0.pdf
   - [func (t *VoidType) String() string](#VoidType.String)
 
 ### Package files
- [buf.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/dwarf/buf.go) [class_string.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/dwarf/class_string.go) [const.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/dwarf/const.go) [entry.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/dwarf/entry.go) [line.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/dwarf/line.go) [open.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/dwarf/open.go) [type.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/dwarf/type.go) [typeunit.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/dwarf/typeunit.go) [unit.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/dwarf/unit.go)
+ [buf.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/dwarf/buf.go) [class_string.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/dwarf/class_string.go) [const.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/dwarf/const.go) [entry.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/dwarf/entry.go) [line.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/dwarf/line.go) [open.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/dwarf/open.go) [type.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/dwarf/type.go) [typeunit.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/dwarf/typeunit.go) [unit.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/dwarf/unit.go)
 
 

Variables

@@ -101,7 +101,7 @@ http://dwarfstd.org/doc/dwarf-2.0.0.pdf ErrUnknownPC is the error returned by LineReader.ScanPC when the seek PC is not covered by any entry in the line table. -

type AddrType +

type AddrType

type AddrType struct {
     BasicType
@@ -109,7 +109,7 @@ covered by any entry in the line table.
 
 An AddrType represents a machine address type.
 
-

type ArrayType +

type ArrayType

type ArrayType struct {
     CommonType
@@ -120,17 +120,17 @@ An AddrType represents a machine address type.
 
 An ArrayType represents a fixed size array type.
 
-

func (*ArrayType) Size +

func (*ArrayType) Size

func (t *ArrayType) Size() int64
-

func (*ArrayType) String +

func (*ArrayType) String

func (t *ArrayType) String() string
-

type Attr +

type Attr

type Attr uint32
@@ -212,17 +212,17 @@ An Attr identifies the attribute type in a DWARF Entry's Field. )
-

func (Attr) GoString +

func (Attr) GoString

func (a Attr) GoString() string
-

func (Attr) String +

func (Attr) String

func (a Attr) String() string
-

type BasicType +

type BasicType

type BasicType struct {
     CommonType
@@ -232,17 +232,17 @@ An Attr identifies the attribute type in a DWARF Entry's Field.
 
 A BasicType holds fields common to all basic types.
 
-

func (*BasicType) Basic +

func (*BasicType) Basic

func (b *BasicType) Basic() *BasicType
-

func (*BasicType) String +

func (*BasicType) String

func (t *BasicType) String() string
-

type BoolType +

type BoolType

type BoolType struct {
     BasicType
@@ -250,7 +250,7 @@ A BasicType holds fields common to all basic types.
 
 A BoolType represents a boolean type.
 
-

type CharType +

type CharType

type CharType struct {
     BasicType
@@ -258,7 +258,7 @@ A BoolType represents a boolean type.
 
 A CharType represents a signed character type.
 
-

type Class +

type Class

type Class int
@@ -344,17 +344,17 @@ DWARF 3. )
-

func (Class) GoString +

func (Class) GoString

func (i Class) GoString() string
-

func (Class) String +

func (Class) String

func (i Class) String() string
-

type CommonType +

type CommonType

type CommonType struct {
     ByteSize int64  // size of value of this type, in bytes
@@ -364,17 +364,17 @@ DWARF 3.
 A CommonType holds fields common to multiple types. If a field is not known or
 not applicable for a given type, the zero value is used.
 
-

func (*CommonType) Common +

func (*CommonType) Common

func (c *CommonType) Common() *CommonType
-

func (*CommonType) Size +

func (*CommonType) Size

func (c *CommonType) Size() int64
-

type ComplexType +

type ComplexType

type ComplexType struct {
     BasicType
@@ -382,7 +382,7 @@ not applicable for a given type, the zero value is used.
 
 A ComplexType represents a complex floating point type.
 
-

type Data +

type Data

type Data struct {
     // contains filtered or unexported fields
@@ -391,7 +391,7 @@ A ComplexType represents a complex floating point type.
 Data represents the DWARF debugging information loaded from an executable file
 (for example, an ELF or Mach-O executable).
 
-

func New +

func New

func New(abbrev, aranges, frame, info, line, pubnames, ranges, str []byte) (*Data, error)
@@ -403,7 +403,7 @@ The []byte arguments are the data from the corresponding debug section in the object file; for example, for an ELF object, abbrev is the contents of the ".debug_abbrev" section. -

func (*Data) AddTypes +

func (*Data) AddTypes

func (d *Data) AddTypes(name string, types []byte) error
@@ -412,7 +412,7 @@ with DWARF version 4 debug info will have multiple .debug_types sections. The name is used for error reporting only, and serves to distinguish one .debug_types section from another. -

func (*Data) LineReader +

func (*Data) LineReader

func (d *Data) LineReader(cu *Entry) (*LineReader, error)
@@ -421,7 +421,7 @@ must be an Entry with tag TagCompileUnit. If this compilation unit has no line table, it returns nil, nil. -

func (*Data) Ranges +

func (*Data) Ranges

func (d *Data) Ranges(e *Entry) ([][2]uint64, error)
@@ -429,20 +429,20 @@ Ranges returns the PC ranges covered by e, a slice of [low,high) pairs. Only some entry types, such as TagCompileUnit or TagSubprogram, have PC ranges; for others, this will return nil with no error. -

func (*Data) Reader +

func (*Data) Reader

func (d *Data) Reader() *Reader
Reader returns a new Reader for Data. The reader is positioned at byte offset 0 in the DWARF ``info'' section. -

func (*Data) Type +

func (*Data) Type

func (d *Data) Type(off Offset) (Type, error)
Type reads the type at off in the DWARF ``info'' section. -

type DecodeError +

type DecodeError

type DecodeError struct {
     Name   string
@@ -451,12 +451,12 @@ Type reads the type at off in the DWARF ``info'' section.
 }
-

func (DecodeError) Error +

func (DecodeError) Error

func (e DecodeError) Error() string
-

type DotDotDotType +

type DotDotDotType

type DotDotDotType struct {
     CommonType
@@ -464,12 +464,12 @@ Type reads the type at off in the DWARF ``info'' section.
 
 A DotDotDotType represents the variadic ... function parameter.
 
-

func (*DotDotDotType) String +

func (*DotDotDotType) String

func (t *DotDotDotType) String() string
-

type Entry +

type Entry

type Entry struct {
     Offset   Offset // offset of Entry in DWARF info
@@ -480,14 +480,14 @@ A DotDotDotType represents the variadic ... function parameter.
 
 An entry is a sequence of attribute/value pairs.
 
-

func (*Entry) AttrField +

func (*Entry) AttrField

func (e *Entry) AttrField(a Attr) *Field
AttrField returns the Field associated with attribute Attr in Entry, or nil if there is no such attribute. -

func (*Entry) Val +

func (*Entry) Val

func (e *Entry) Val(a Attr) interface{}
@@ -499,7 +499,7 @@ value has the expected dynamic type, as in: v, ok := e.Val(AttrSibling).(int64) -

type EnumType +

type EnumType

type EnumType struct {
     CommonType
@@ -510,12 +510,12 @@ value has the expected dynamic type, as in:
 An EnumType represents an enumerated type. The only indication of its native
 integer type is its ByteSize (inside CommonType).
 
-

func (*EnumType) String +

func (*EnumType) String

func (t *EnumType) String() string
-

type EnumValue +

type EnumValue

type EnumValue struct {
     Name string
@@ -524,7 +524,7 @@ integer type is its ByteSize (inside CommonType).
 
 An EnumValue represents a single enumeration value.
 
-

type Field +

type Field

type Field struct {
     Attr  Attr
@@ -555,7 +555,7 @@ corresponding to each class are:
 
 For unrecognized or vendor-defined attributes, Class may be ClassUnknown.
 
-

type FloatType +

type FloatType

type FloatType struct {
     BasicType
@@ -563,7 +563,7 @@ For unrecognized or vendor-defined attributes, Class may be ClassUnknown.
 
 A FloatType represents a floating point type.
 
-

type FuncType +

type FuncType

type FuncType struct {
     CommonType
@@ -573,12 +573,12 @@ A FloatType represents a floating point type.
 
 A FuncType represents a function type.
 
-

func (*FuncType) String +

func (*FuncType) String

func (t *FuncType) String() string
-

type IntType +

type IntType

type IntType struct {
     BasicType
@@ -586,7 +586,7 @@ A FuncType represents a function type.
 
 An IntType represents a signed integer type.
 
-

type LineEntry +

type LineEntry

type LineEntry struct {
     // Address is the program-counter value of a machine
@@ -668,7 +668,7 @@ An IntType represents a signed integer type.
 
 A LineEntry is a row in a DWARF line table.
 
-

type LineFile +

type LineFile

type LineFile struct {
     Name   string
@@ -678,7 +678,7 @@ A LineEntry is a row in a DWARF line table.
 
 A LineFile is a source file referenced by a DWARF line table entry.
 
-

type LineReader +

type LineReader

type LineReader struct {
     // contains filtered or unexported fields
@@ -690,7 +690,7 @@ PC and each LineEntry gives metadata for the instructions from that LineEntry's
 PC to just before the next LineEntry's PC. The last entry will have its
 EndSequence field set.
 
-

func (*LineReader) Next +

func (*LineReader) Next

func (r *LineReader) Next(entry *LineEntry) error
@@ -701,13 +701,13 @@ returns io.EOF. Rows are always in order of increasing entry.Address, but entry.Line may go forward or backward. -

func (*LineReader) Reset +

func (*LineReader) Reset

func (r *LineReader) Reset()
Reset repositions the line table reader at the beginning of the line table. -

func (*LineReader) Seek +

func (*LineReader) Seek

func (r *LineReader) Seek(pos LineReaderPos)
@@ -715,7 +715,7 @@ Seek restores the line table reader to a position returned by Tell. The argument pos must have been returned by a call to Tell on this line table. -

func (*LineReader) SeekPC +

func (*LineReader) SeekPC

func (r *LineReader) SeekPC(pc uint64, entry *LineEntry) error
@@ -731,13 +731,13 @@ worst case, this takes time linear in the size of the line table. If the caller wishes to do repeated fast PC lookups, it should build an appropriate index of the line table. -

func (*LineReader) Tell +

func (*LineReader) Tell

func (r *LineReader) Tell() LineReaderPos
Tell returns the current position in the line table. -

type LineReaderPos +

type LineReaderPos

type LineReaderPos struct {
     // contains filtered or unexported fields
@@ -745,14 +745,14 @@ Tell returns the current position in the line table.
 
 A LineReaderPos represents a position in a line table.
 
-

type Offset +

type Offset

type Offset uint32
An Offset represents the location of an Entry within the DWARF info. (See Reader.Seek.) -

type PtrType +

type PtrType

type PtrType struct {
     CommonType
@@ -761,12 +761,12 @@ Reader.Seek.)
 
 A PtrType represents a pointer type.
 
-

func (*PtrType) String +

func (*PtrType) String

func (t *PtrType) String() string
-

type QualType +

type QualType

type QualType struct {
     CommonType
@@ -777,17 +777,17 @@ A PtrType represents a pointer type.
 A QualType represents a type that has the C/C++ "const", "restrict", or
 "volatile" qualifier.
 
-

func (*QualType) Size +

func (*QualType) Size

func (t *QualType) Size() int64
-

func (*QualType) String +

func (*QualType) String

func (t *QualType) String() string
-

type Reader +

type Reader

type Reader struct {
     // contains filtered or unexported fields
@@ -799,14 +799,14 @@ successive entries from a pre-order traversal of the tree. If an entry has
 children, its Children field will be true, and the children follow, terminated
 by an Entry with Tag 0.
 
-

func (*Reader) AddressSize +

func (*Reader) AddressSize

func (r *Reader) AddressSize() int
AddressSize returns the size in bytes of addresses in the current compilation unit. -

func (*Reader) Next +

func (*Reader) Next

func (r *Reader) Next() (*Entry, error)
@@ -814,14 +814,14 @@ Next reads the next entry from the encoded entry stream. It returns nil, nil when it reaches the end of the section. It returns an error if the current offset is invalid or the data at the offset cannot be decoded as a valid Entry. -

func (*Reader) Seek +

func (*Reader) Seek

func (r *Reader) Seek(off Offset)
Seek positions the Reader at offset off in the encoded entry stream. Offset 0 can be used to denote the first entry. -

func (*Reader) SeekPC +

func (*Reader) SeekPC

func (r *Reader) SeekPC(pc uint64) (*Entry, error)
@@ -837,7 +837,7 @@ call, so in general looking up a series of PCs will be faster if they are sorted. If the caller wishes to do repeated fast PC lookups, it should build an appropriate index using the Ranges method. -

func (*Reader) SkipChildren +

func (*Reader) SkipChildren

func (r *Reader) SkipChildren()
@@ -845,7 +845,7 @@ SkipChildren skips over the child entries associated with the last Entry returned by Next. If that Entry did not have children or Next has not been called, SkipChildren is a no-op. -

type StructField +

type StructField

type StructField struct {
     Name       string
@@ -858,7 +858,7 @@ called, SkipChildren is a no-op.
 
 A StructField represents a field in a struct, union, or C++ class type.
 
-

type StructType +

type StructType

type StructType struct {
     CommonType
@@ -870,17 +870,17 @@ A StructField represents a field in a struct, union, or C++ class type.
 
 A StructType represents a struct, union, or C++ class type.
 
-

func (*StructType) Defn +

func (*StructType) Defn

func (t *StructType) Defn() string
-

func (*StructType) String +

func (*StructType) String

func (t *StructType) String() string
-

type Tag +

type Tag

type Tag uint32
@@ -953,17 +953,17 @@ A Tag is the classification (the type) of an Entry. )
-

func (Tag) GoString +

func (Tag) GoString

func (t Tag) GoString() string
-

func (Tag) String +

func (Tag) String

func (t Tag) String() string
-

type Type +

type Type

type Type interface {
     Common() *CommonType
@@ -974,7 +974,7 @@ A Tag is the classification (the type) of an Entry.
 A Type conventionally represents a pointer to any of the specific Type
 structures (CharType, StructType, etc.).
 
-

type TypedefType +

type TypedefType

type TypedefType struct {
     CommonType
@@ -983,17 +983,17 @@ structures (CharType, StructType, etc.).
 
 A TypedefType represents a named type.
 
-

func (*TypedefType) Size +

func (*TypedefType) Size

func (t *TypedefType) Size() int64
-

func (*TypedefType) String +

func (*TypedefType) String

func (t *TypedefType) String() string
-

type UcharType +

type UcharType

type UcharType struct {
     BasicType
@@ -1001,7 +1001,7 @@ A TypedefType represents a named type.
 
 A UcharType represents an unsigned character type.
 
-

type UintType +

type UintType

type UintType struct {
     BasicType
@@ -1009,7 +1009,7 @@ A UcharType represents an unsigned character type.
 
 A UintType represents an unsigned integer type.
 
-

type UnspecifiedType +

type UnspecifiedType

type UnspecifiedType struct {
     BasicType
@@ -1018,7 +1018,7 @@ A UintType represents an unsigned integer type.
 An UnspecifiedType represents an implicit, unknown, ambiguous or nonexistent
 type.
 
-

type VoidType +

type VoidType

type VoidType struct {
     CommonType
@@ -1026,7 +1026,7 @@ type.
 
 A VoidType represents the C void type.
 
-

func (*VoidType) String +

func (*VoidType) String

func (t *VoidType) String() string
diff --git a/Source/debug/elf/elf.md b/Source/debug/elf/elf.md index a5aafdd..6547571 100644 --- a/Source/debug/elf/elf.md +++ b/Source/debug/elf/elf.md @@ -147,7 +147,7 @@ Package elf implements access to ELF object files. - [func (i Version) String() string](#Version.String) ### Package files - [elf.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/elf/elf.go) [file.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/elf/file.go) [reader.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/elf/reader.go) + [elf.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/elf/elf.go) [file.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/elf/file.go) [reader.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/elf/reader.go)

Constants

@@ -184,42 +184,42 @@ Initial magic number for ELF files. ErrNoSymbols is returned by File.Symbols and File.DynamicSymbols if there is no such section in the File. -

func R_INFO +

func R_INFO

func R_INFO(sym, typ uint32) uint64
-

func R_INFO32 +

func R_INFO32

func R_INFO32(sym, typ uint32) uint32
-

func R_SYM32 +

func R_SYM32

func R_SYM32(info uint32) uint32
-

func R_SYM64 +

func R_SYM64

func R_SYM64(info uint64) uint32
-

func R_TYPE32 +

func R_TYPE32

func R_TYPE32(info uint32) uint32
-

func R_TYPE64 +

func R_TYPE64

func R_TYPE64(info uint64) uint32
-

func ST_INFO +

func ST_INFO

func ST_INFO(bind SymBind, typ SymType) uint8
-

type Chdr32 +

type Chdr32

type Chdr32 struct {
     Type      uint32
@@ -229,7 +229,7 @@ such section in the File.
 
 ELF32 Compression header.
 
-

type Chdr64 +

type Chdr64

type Chdr64 struct {
     Type uint32
@@ -241,7 +241,7 @@ ELF32 Compression header.
 
 ELF64 Compression header.
 
-

type Class +

type Class

type Class byte
@@ -254,17 +254,17 @@ Class is found in Header.Ident[EI_CLASS] and Header.Class. )
-

func (Class) GoString +

func (Class) GoString

func (i Class) GoString() string
-

func (Class) String +

func (Class) String

func (i Class) String() string
-

type CompressionType +

type CompressionType

type CompressionType int
@@ -279,17 +279,17 @@ Section compression type. )
-

func (CompressionType) GoString +

func (CompressionType) GoString

func (i CompressionType) GoString() string
-

func (CompressionType) String +

func (CompressionType) String

func (i CompressionType) String() string
-

type Data +

type Data

type Data byte
@@ -302,17 +302,17 @@ Data is found in Header.Ident[EI_DATA] and Header.Data. )
-

func (Data) GoString +

func (Data) GoString

func (i Data) GoString() string
-

func (Data) String +

func (Data) String

func (i Data) String() string
-

type Dyn32 +

type Dyn32

type Dyn32 struct {
     Tag int32  /* Entry type. */
@@ -321,7 +321,7 @@ Data is found in Header.Ident[EI_DATA] and Header.Data.
 
 ELF32 Dynamic structure. The ".dynamic" section contains an array of them.
 
-

type Dyn64 +

type Dyn64

type Dyn64 struct {
     Tag int64  /* Entry type. */
@@ -330,7 +330,7 @@ ELF32 Dynamic structure. The ".dynamic" section contains an array of them.
 
 ELF64 Dynamic structure. The ".dynamic" section contains an array of them.
 
-

type DynFlag +

type DynFlag

type DynFlag int
@@ -352,17 +352,17 @@ DT_FLAGS values. )
-

func (DynFlag) GoString +

func (DynFlag) GoString

func (i DynFlag) GoString() string
-

func (DynFlag) String +

func (DynFlag) String

func (i DynFlag) String() string
-

type DynTag +

type DynTag

type DynTag int
@@ -417,17 +417,17 @@ Dyn.Tag )
-

func (DynTag) GoString +

func (DynTag) GoString

func (i DynTag) GoString() string
-

func (DynTag) String +

func (DynTag) String

func (i DynTag) String() string
-

type File +

type File

type File struct {
     FileHeader
@@ -438,33 +438,33 @@ Dyn.Tag
 
 A File represents an open ELF file.
 
-

func NewFile +

func NewFile

func NewFile(r io.ReaderAt) (*File, error)
NewFile creates a new File for accessing an ELF binary in an underlying reader. The ELF binary is expected to start at position 0 in the ReaderAt. -

func Open +

func Open

func Open(name string) (*File, error)
Open opens the named file using os.Open and prepares it for use as an ELF binary. -

func (*File) Close +

func (*File) Close

func (f *File) Close() error
Close closes the File. If the File was created using NewFile directly instead of Open, Close has no effect. -

func (*File) DWARF +

func (*File) DWARF

func (f *File) DWARF() (*dwarf.Data, error)
-

func (*File) DynString +

func (*File) DynString

func (f *File) DynString(tag DynTag) ([]string, error)
@@ -474,7 +474,7 @@ section. The tag must be one that takes string values: DT_NEEDED, DT_SONAME, DT_RPATH, or DT_RUNPATH. -

func (*File) DynamicSymbols +

func (*File) DynamicSymbols

func (f *File) DynamicSymbols() ([]Symbol, error)
@@ -485,14 +485,14 @@ For compatibility with Symbols, DynamicSymbols omits the null symbol at index 0. After retrieving the symbols as symtab, an externally supplied index x corresponds to symtab[x-1], not symtab[x]. -

func (*File) ImportedLibraries +

func (*File) ImportedLibraries

func (f *File) ImportedLibraries() ([]string, error)
ImportedLibraries returns the names of all libraries referred to by the binary f that are expected to be linked with the binary at dynamic link time. -

func (*File) ImportedSymbols +

func (*File) ImportedSymbols

func (f *File) ImportedSymbols() ([]ImportedSymbol, error)
@@ -500,20 +500,20 @@ ImportedSymbols returns the names of all symbols referred to by the binary f that are expected to be satisfied by other libraries at dynamic load time. It does not return weak symbols. -

func (*File) Section +

func (*File) Section

func (f *File) Section(name string) *Section
Section returns a section with the given name, or nil if no such section exists. -

func (*File) SectionByType +

func (*File) SectionByType

func (f *File) SectionByType(typ SectionType) *Section
SectionByType returns the first section in f with the given type, or nil if there is no such section. -

func (*File) Symbols +

func (*File) Symbols

func (f *File) Symbols() ([]Symbol, error)
@@ -524,7 +524,7 @@ For compatibility with Go 1.0, Symbols omits the null symbol at index 0. After retrieving the symbols as symtab, an externally supplied index x corresponds to symtab[x-1], not symtab[x]. -

type FileHeader +

type FileHeader

type FileHeader struct {
     Class      Class
@@ -540,19 +540,19 @@ symtab[x-1], not symtab[x].
 
 A FileHeader represents an ELF file header.
 
-

type FormatError +

type FormatError

type FormatError struct {
     // contains filtered or unexported fields
 }
-

func (*FormatError) Error +

func (*FormatError) Error

func (e *FormatError) Error() string
-

type Header32 +

type Header32

type Header32 struct {
     Ident     [EI_NIDENT]byte /* File identification. */
@@ -573,7 +573,7 @@ A FileHeader represents an ELF file header.
 
 ELF32 File header.
 
-

type Header64 +

type Header64

type Header64 struct {
     Ident     [EI_NIDENT]byte /* File identification. */
@@ -594,7 +594,7 @@ ELF32 File header.
 
 ELF64 file header.
 
-

type ImportedSymbol +

type ImportedSymbol

type ImportedSymbol struct {
     Name    string
@@ -603,7 +603,7 @@ ELF64 file header.
 }
-

type Machine +

type Machine

type Machine uint16
@@ -663,17 +663,17 @@ Machine is found in Header.Machine. )
-

func (Machine) GoString +

func (Machine) GoString

func (i Machine) GoString() string
-

func (Machine) String +

func (Machine) String

func (i Machine) String() string
-

type NType +

type NType

type NType int
@@ -686,17 +686,17 @@ NType values; used in core files. )
-

func (NType) GoString +

func (NType) GoString

func (i NType) GoString() string
-

func (NType) String +

func (NType) String

func (i NType) String() string
-

type OSABI +

type OSABI

type OSABI byte
@@ -723,17 +723,17 @@ OSABI is found in Header.Ident[EI_OSABI] and Header.OSABI. )
-

func (OSABI) GoString +

func (OSABI) GoString

func (i OSABI) GoString() string
-

func (OSABI) String +

func (OSABI) String

func (i OSABI) String() string
-

type Prog +

type Prog

type Prog struct {
     ProgHeader
@@ -750,13 +750,13 @@ OSABI is found in Header.Ident[EI_OSABI] and Header.OSABI.
 
 A Prog represents a single ELF program header in an ELF binary.
 
-

func (*Prog) Open +

func (*Prog) Open

func (p *Prog) Open() io.ReadSeeker
Open returns a new ReadSeeker reading the ELF program body. -

type Prog32 +

type Prog32

type Prog32 struct {
     Type   uint32 /* Entry type. */
@@ -771,7 +771,7 @@ Open returns a new ReadSeeker reading the ELF program body.
 
 ELF32 Program header.
 
-

type Prog64 +

type Prog64

type Prog64 struct {
     Type   uint32 /* Entry type. */
@@ -786,7 +786,7 @@ ELF32 Program header.
 
 ELF64 Program header.
 
-

type ProgFlag +

type ProgFlag

type ProgFlag uint32
@@ -801,17 +801,17 @@ Prog.Flag )
-

func (ProgFlag) GoString +

func (ProgFlag) GoString

func (i ProgFlag) GoString() string
-

func (ProgFlag) String +

func (ProgFlag) String

func (i ProgFlag) String() string
-

type ProgHeader +

type ProgHeader

type ProgHeader struct {
     Type   ProgType
@@ -826,7 +826,7 @@ Prog.Flag
 
 A ProgHeader represents a single ELF program header.
 
-

type ProgType +

type ProgType

type ProgType int
@@ -848,17 +848,17 @@ Prog.Type )
-

func (ProgType) GoString +

func (ProgType) GoString

func (i ProgType) GoString() string
-

func (ProgType) String +

func (ProgType) String

func (i ProgType) String() string
-

type R_386 +

type R_386

type R_386 int
@@ -910,17 +910,17 @@ Relocation types for 386. )
-

func (R_386) GoString +

func (R_386) GoString

func (i R_386) GoString() string
-

func (R_386) String +

func (R_386) String

func (i R_386) String() string
-

type R_390 +

type R_390

type R_390 int
@@ -991,17 +991,17 @@ Relocation types for s390x processors. )
-

func (R_390) GoString +

func (R_390) GoString

func (i R_390) GoString() string
-

func (R_390) String +

func (R_390) String

func (i R_390) String() string
-

type R_AARCH64 +

type R_AARCH64

type R_AARCH64 int
@@ -1141,17 +1141,17 @@ Relocation types for AArch64 (aka arm64) )
-

func (R_AARCH64) GoString +

func (R_AARCH64) GoString

func (i R_AARCH64) GoString() string
-

func (R_AARCH64) String +

func (R_AARCH64) String

func (i R_AARCH64) String() string
-

type R_ALPHA +

type R_ALPHA

type R_ALPHA int
@@ -1189,17 +1189,17 @@ Relocation types for Alpha. )
-

func (R_ALPHA) GoString +

func (R_ALPHA) GoString

func (i R_ALPHA) GoString() string
-

func (R_ALPHA) String +

func (R_ALPHA) String

func (i R_ALPHA) String() string
-

type R_ARM +

type R_ARM

type R_ARM int
@@ -1353,17 +1353,17 @@ Relocation types for ARM. )
-

func (R_ARM) GoString +

func (R_ARM) GoString

func (i R_ARM) GoString() string
-

func (R_ARM) String +

func (R_ARM) String

func (i R_ARM) String() string
-

type R_MIPS +

type R_MIPS

type R_MIPS int
@@ -1422,17 +1422,17 @@ Relocation types for MIPS. )
-

func (R_MIPS) GoString +

func (R_MIPS) GoString

func (i R_MIPS) GoString() string
-

func (R_MIPS) String +

func (R_MIPS) String

func (i R_MIPS) String() string
-

type R_PPC +

type R_PPC

type R_PPC int
@@ -1524,17 +1524,17 @@ comment. )
-

func (R_PPC) GoString +

func (R_PPC) GoString

func (i R_PPC) GoString() string
-

func (R_PPC) String +

func (R_PPC) String

func (i R_PPC) String() string
-

type R_PPC64 +

type R_PPC64

type R_PPC64 int
@@ -1654,17 +1654,17 @@ comment. )
-

func (R_PPC64) GoString +

func (R_PPC64) GoString

func (i R_PPC64) GoString() string
-

func (R_PPC64) String +

func (R_PPC64) String

func (i R_PPC64) String() string
-

type R_SPARC +

type R_SPARC

type R_SPARC int
@@ -1730,17 +1730,17 @@ Relocation types for SPARC. )
-

func (R_SPARC) GoString +

func (R_SPARC) GoString

func (i R_SPARC) GoString() string
-

func (R_SPARC) String +

func (R_SPARC) String

func (i R_SPARC) String() string
-

type R_X86_64 +

type R_X86_64

type R_X86_64 int
@@ -1793,17 +1793,17 @@ Relocation types for x86-64. )
-

func (R_X86_64) GoString +

func (R_X86_64) GoString

func (i R_X86_64) GoString() string
-

func (R_X86_64) String +

func (R_X86_64) String

func (i R_X86_64) String() string
-

type Rel32 +

type Rel32

type Rel32 struct {
     Off  uint32 /* Location to be relocated. */
@@ -1812,7 +1812,7 @@ Relocation types for x86-64.
 
 ELF32 Relocations that don't need an addend field.
 
-

type Rel64 +

type Rel64

type Rel64 struct {
     Off  uint64 /* Location to be relocated. */
@@ -1821,7 +1821,7 @@ ELF32 Relocations that don't need an addend field.
 
 ELF64 relocations that don't need an addend field.
 
-

type Rela32 +

type Rela32

type Rela32 struct {
     Off    uint32 /* Location to be relocated. */
@@ -1831,7 +1831,7 @@ ELF64 relocations that don't need an addend field.
 
 ELF32 Relocations that need an addend field.
 
-

type Rela64 +

type Rela64

type Rela64 struct {
     Off    uint64 /* Location to be relocated. */
@@ -1841,7 +1841,7 @@ ELF32 Relocations that need an addend field.
 
 ELF64 relocations that need an addend field.
 
-

type Section +

type Section

type Section struct {
     SectionHeader
@@ -1862,21 +1862,21 @@ ELF64 relocations that need an addend field.
 
 A Section represents a single section in an ELF file.
 
-

func (*Section) Data +

func (*Section) Data

func (s *Section) Data() ([]byte, error)
Data reads and returns the contents of the ELF section. Even if the section is stored compressed in the ELF file, Data returns uncompressed data. -

func (*Section) Open +

func (*Section) Open

func (s *Section) Open() io.ReadSeeker
Open returns a new ReadSeeker reading the ELF section. Even if the section is stored compressed in the ELF file, the ReadSeeker reads uncompressed data. -

type Section32 +

type Section32

type Section32 struct {
     Name      uint32 /* Section name (index into the section header string table). */
@@ -1893,7 +1893,7 @@ stored compressed in the ELF file, the ReadSeeker reads uncompressed data.
 
 ELF32 Section header.
 
-

type Section64 +

type Section64

type Section64 struct {
     Name      uint32 /* Section name (index into the section header string table). */
@@ -1910,7 +1910,7 @@ ELF32 Section header.
 
 ELF64 Section header.
 
-

type SectionFlag +

type SectionFlag

type SectionFlag uint32
@@ -1933,17 +1933,17 @@ Section flags. )
-

func (SectionFlag) GoString +

func (SectionFlag) GoString

func (i SectionFlag) GoString() string
-

func (SectionFlag) String +

func (SectionFlag) String

func (i SectionFlag) String() string
-

type SectionHeader +

type SectionHeader

type SectionHeader struct {
     Name      string
@@ -1966,7 +1966,7 @@ Section flags.
 
 A SectionHeader represents a single ELF section header.
 
-

type SectionIndex +

type SectionIndex

type SectionIndex int
@@ -1986,17 +1986,17 @@ Special section indices. )
-

func (SectionIndex) GoString +

func (SectionIndex) GoString

func (i SectionIndex) GoString() string
-

func (SectionIndex) String +

func (SectionIndex) String

func (i SectionIndex) String() string
-

type SectionType +

type SectionType

type SectionType uint32
@@ -2035,17 +2035,17 @@ Section type. )
-

func (SectionType) GoString +

func (SectionType) GoString

func (i SectionType) GoString() string
-

func (SectionType) String +

func (SectionType) String

func (i SectionType) String() string
-

type Sym32 +

type Sym32

type Sym32 struct {
     Name  uint32
@@ -2058,7 +2058,7 @@ Section type.
 
 ELF32 Symbol.
 
-

type Sym64 +

type Sym64

type Sym64 struct {
     Name  uint32 /* String table index of name. */
@@ -2071,7 +2071,7 @@ ELF32 Symbol.
 
 ELF64 symbol table entries.
 
-

type SymBind +

type SymBind

type SymBind int
@@ -2088,22 +2088,22 @@ Symbol Binding - ELFNN_ST_BIND - st_info )
-

func ST_BIND +

func ST_BIND

func ST_BIND(info uint8) SymBind
-

func (SymBind) GoString +

func (SymBind) GoString

func (i SymBind) GoString() string
-

func (SymBind) String +

func (SymBind) String

func (i SymBind) String() string
-

type SymType +

type SymType

type SymType int
@@ -2124,22 +2124,22 @@ Symbol type - ELFNN_ST_TYPE - st_info )
-

func ST_TYPE +

func ST_TYPE

func ST_TYPE(info uint8) SymType
-

func (SymType) GoString +

func (SymType) GoString

func (i SymType) GoString() string
-

func (SymType) String +

func (SymType) String

func (i SymType) String() string
-

type SymVis +

type SymVis

type SymVis int
@@ -2153,22 +2153,22 @@ Symbol visibility - ELFNN_ST_VISIBILITY - st_other )
-

func ST_VISIBILITY +

func ST_VISIBILITY

func ST_VISIBILITY(other uint8) SymVis
-

func (SymVis) GoString +

func (SymVis) GoString

func (i SymVis) GoString() string
-

func (SymVis) String +

func (SymVis) String

func (i SymVis) String() string
-

type Symbol +

type Symbol

type Symbol struct {
     Name        string
@@ -2179,7 +2179,7 @@ Symbol visibility - ELFNN_ST_VISIBILITY - st_other
 
 A Symbol represents an entry in an ELF symbol table section.
 
-

type Type +

type Type

type Type uint16
@@ -2198,17 +2198,17 @@ Type is found in Header.Type. )
-

func (Type) GoString +

func (Type) GoString

func (i Type) GoString() string
-

func (Type) String +

func (Type) String

func (i Type) String() string
-

type Version +

type Version

type Version byte
@@ -2220,12 +2220,12 @@ Version is found in Header.Ident[EI_VERSION] and Header.Version. )
-

func (Version) GoString +

func (Version) GoString

func (i Version) GoString() string
-

func (Version) String +

func (Version) String

func (i Version) String() string
diff --git a/Source/debug/gosym/gosym.md b/Source/debug/gosym/gosym.md index 1aac0fc..1aa3357 100644 --- a/Source/debug/gosym/gosym.md +++ b/Source/debug/gosym/gosym.md @@ -37,9 +37,9 @@ in Go binaries generated by the gc compilers. - [func (e *UnknownLineError) Error() string](#UnknownLineError.Error) ### Package files - [pclntab.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/gosym/pclntab.go) [symtab.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/gosym/symtab.go) + [pclntab.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/gosym/pclntab.go) [symtab.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/gosym/symtab.go) -

type DecodingError +

type DecodingError

type DecodingError struct {
     // contains filtered or unexported fields
@@ -47,12 +47,12 @@ in Go binaries generated by the gc compilers.
 
 DecodingError represents an error during the decoding of the symbol table.
 
-

func (*DecodingError) Error +

func (*DecodingError) Error

func (e *DecodingError) Error() string
-

type Func +

type Func

type Func struct {
     Entry uint64
@@ -67,7 +67,7 @@ DecodingError represents an error during the decoding of the symbol table.
 
 A Func collects information about a single function.
 
-

type LineTable +

type LineTable

type LineTable struct {
     Data []byte
@@ -90,14 +90,14 @@ numbers, just line numbers within specific files.
 For the most part, LineTable's methods should be treated as an internal detail
 of the package; callers should use the methods on Table instead.
 
-

func NewLineTable +

func NewLineTable

func NewLineTable(data []byte, text uint64) *LineTable
NewLineTable returns a new PC/line table corresponding to the encoded data. Text must be the start address of the corresponding text segment. -

func (*LineTable) LineToPC +

func (*LineTable) LineToPC

func (t *LineTable) LineToPC(line int, maxpc uint64) uint64
@@ -105,14 +105,14 @@ LineToPC returns the program counter for the given line number, considering only program counters before maxpc. Callers should use Table's LineToPC method instead. -

func (*LineTable) PCToLine +

func (*LineTable) PCToLine

func (t *LineTable) PCToLine(pc uint64) int
PCToLine returns the line number for the given program counter. Callers should use Table's PCToLine method instead. -

type Obj +

type Obj

type Obj struct {
     // Funcs is a list of functions in the Obj.
@@ -137,7 +137,7 @@ per C source file.
 
 In Go 1.2, there is a single Obj for the entire program.
 
-

type Sym +

type Sym

type Sym struct {
     Value  uint64
@@ -150,33 +150,33 @@ In Go 1.2, there is a single Obj for the entire program.
 
 A Sym represents a single symbol table entry.
 
-

func (*Sym) BaseName +

func (*Sym) BaseName

func (s *Sym) BaseName() string
BaseName returns the symbol name without the package or receiver name. -

func (*Sym) PackageName +

func (*Sym) PackageName

func (s *Sym) PackageName() string
PackageName returns the package part of the symbol name, or the empty string if there is none. -

func (*Sym) ReceiverName +

func (*Sym) ReceiverName

func (s *Sym) ReceiverName() string
ReceiverName returns the receiver type name of this symbol, or the empty string if there is none. -

func (*Sym) Static +

func (*Sym) Static

func (s *Sym) Static() bool
Static reports whether this symbol is static (not visible outside its file). -

type Table +

type Table

type Table struct {
     Syms  []Sym // nil for Go 1.3 and later binaries
@@ -190,7 +190,7 @@ Table represents a Go symbol table. It stores all of the symbols decoded from
 the program and provides methods to translate between symbols, names, and
 addresses.
 
-

func NewTable +

func NewTable

func NewTable(symtab []byte, pcln *LineTable) (*Table, error)
@@ -198,7 +198,7 @@ NewTable decodes the Go symbol table (the ".gosymtab" section in ELF), returning an in-memory representation. Starting with Go 1.3, the Go symbol table no longer includes symbol data. -

func (*Table) LineToPC +

func (*Table) LineToPC

func (t *Table) LineToPC(file string, line int) (pc uint64, fn *Func, err error)
@@ -206,53 +206,53 @@ LineToPC looks up the first program counter on the given line in the named file. It returns UnknownPathError or UnknownLineError if there is an error looking up this line. -

func (*Table) LookupFunc +

func (*Table) LookupFunc

func (t *Table) LookupFunc(name string) *Func
LookupFunc returns the text, data, or bss symbol with the given name, or nil if no such symbol is found. -

func (*Table) LookupSym +

func (*Table) LookupSym

func (t *Table) LookupSym(name string) *Sym
LookupSym returns the text, data, or bss symbol with the given name, or nil if no such symbol is found. -

func (*Table) PCToFunc +

func (*Table) PCToFunc

func (t *Table) PCToFunc(pc uint64) *Func
PCToFunc returns the function containing the program counter pc, or nil if there is no such function. -

func (*Table) PCToLine +

func (*Table) PCToLine

func (t *Table) PCToLine(pc uint64) (file string, line int, fn *Func)
PCToLine looks up line number information for a program counter. If there is no information, it returns fn == nil. -

func (*Table) SymByAddr +

func (*Table) SymByAddr

func (t *Table) SymByAddr(addr uint64) *Sym
SymByAddr returns the text, data, or bss symbol starting at the given address. -

type UnknownFileError +

type UnknownFileError

type UnknownFileError string
UnknownFileError represents a failure to find the specific file in the symbol table. -

func (UnknownFileError) Error +

func (UnknownFileError) Error

func (e UnknownFileError) Error() string
-

type UnknownLineError +

type UnknownLineError

type UnknownLineError struct {
     File string
@@ -263,7 +263,7 @@ UnknownLineError represents a failure to map a line to a program counter, either
 because the line is beyond the bounds of the file or because there is no code on
 the given line.
 
-

func (*UnknownLineError) Error +

func (*UnknownLineError) Error

func (e *UnknownLineError) Error() string
diff --git a/Source/debug/macho/macho.md b/Source/debug/macho/macho.md index bfcde6b..7268b72 100644 --- a/Source/debug/macho/macho.md +++ b/Source/debug/macho/macho.md @@ -82,7 +82,7 @@ Package macho implements access to Mach-O object files. - [func (t Type) String() string](#Type.String) ### Package files - [fat.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/macho/fat.go) [file.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/macho/file.go) [macho.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/macho/macho.go) [reloctype.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/macho/reloctype.go) [reloctype_string.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/macho/reloctype_string.go) + [fat.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/macho/fat.go) [file.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/macho/file.go) [macho.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/macho/macho.go) [reloctype.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/macho/reloctype.go) [reloctype_string.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/macho/reloctype_string.go)

Constants

@@ -130,7 +130,7 @@ Package macho implements access to Mach-O object files. ErrNotFat is returned from NewFatFile or OpenFat when the file is not a universal binary but may be a thin binary, based on its magic number. -

type Cpu +

type Cpu

type Cpu uint32
@@ -145,17 +145,17 @@ A Cpu is a Mach-O cpu type. )
-

func (Cpu) GoString +

func (Cpu) GoString

func (i Cpu) GoString() string
-

func (Cpu) String +

func (Cpu) String

func (i Cpu) String() string
-

type Dylib +

type Dylib

type Dylib struct {
     LoadBytes
@@ -167,7 +167,7 @@ A Cpu is a Mach-O cpu type.
 
 A Dylib represents a Mach-O load dynamic library command.
 
-

type DylibCmd +

type DylibCmd

type DylibCmd struct {
     Cmd            LoadCmd
@@ -180,7 +180,7 @@ A Dylib represents a Mach-O load dynamic library command.
 
 A DylibCmd is a Mach-O load dynamic library command.
 
-

type Dysymtab +

type Dysymtab

type Dysymtab struct {
     LoadBytes
@@ -190,7 +190,7 @@ A DylibCmd is a Mach-O load dynamic library command.
 
 A Dysymtab represents a Mach-O dynamic symbol table command.
 
-

type DysymtabCmd +

type DysymtabCmd

type DysymtabCmd struct {
     Cmd            LoadCmd
@@ -217,7 +217,7 @@ A Dysymtab represents a Mach-O dynamic symbol table command.
 
 A DysymtabCmd is a Mach-O dynamic symbol table command.
 
-

type FatArch +

type FatArch

type FatArch struct {
     FatArchHeader
@@ -226,7 +226,7 @@ A DysymtabCmd is a Mach-O dynamic symbol table command.
 
 A FatArch is a Mach-O File inside a FatFile.
 
-

type FatArchHeader +

type FatArchHeader

type FatArchHeader struct {
     Cpu    Cpu
@@ -238,7 +238,7 @@ A FatArch is a Mach-O File inside a FatFile.
 
 A FatArchHeader represents a fat header for a specific image architecture.
 
-

type FatFile +

type FatFile

type FatFile struct {
     Magic  uint32
@@ -248,7 +248,7 @@ A FatArchHeader represents a fat header for a specific image architecture.
 
 A FatFile is a Mach-O universal binary that contains at least one architecture.
 
-

func NewFatFile +

func NewFatFile

func NewFatFile(r io.ReaderAt) (*FatFile, error)
@@ -256,19 +256,19 @@ NewFatFile creates a new FatFile for accessing all the Mach-O images in a universal binary. The Mach-O binary is expected to start at position 0 in the ReaderAt. -

func OpenFat +

func OpenFat

func OpenFat(name string) (*FatFile, error)
OpenFat opens the named file using os.Open and prepares it for use as a Mach-O universal binary. -

func (*FatFile) Close +

func (*FatFile) Close

func (ff *FatFile) Close() error
-

type File +

type File

type File struct {
     FileHeader
@@ -283,62 +283,62 @@ universal binary.
 
 A File represents an open Mach-O file.
 
-

func NewFile +

func NewFile

func NewFile(r io.ReaderAt) (*File, error)
NewFile creates a new File for accessing a Mach-O binary in an underlying reader. The Mach-O binary is expected to start at position 0 in the ReaderAt. -

func Open +

func Open

func Open(name string) (*File, error)
Open opens the named file using os.Open and prepares it for use as a Mach-O binary. -

func (*File) Close +

func (*File) Close

func (f *File) Close() error
Close closes the File. If the File was created using NewFile directly instead of Open, Close has no effect. -

func (*File) DWARF +

func (*File) DWARF

func (f *File) DWARF() (*dwarf.Data, error)
DWARF returns the DWARF debug information for the Mach-O file. -

func (*File) ImportedLibraries +

func (*File) ImportedLibraries

func (f *File) ImportedLibraries() ([]string, error)
ImportedLibraries returns the paths of all libraries referred to by the binary f that are expected to be linked with the binary at dynamic link time. -

func (*File) ImportedSymbols +

func (*File) ImportedSymbols

func (f *File) ImportedSymbols() ([]string, error)
ImportedSymbols returns the names of all symbols referred to by the binary f that are expected to be satisfied by other libraries at dynamic load time. -

func (*File) Section +

func (*File) Section

func (f *File) Section(name string) *Section
Section returns the first section with the given name, or nil if no such section exists. -

func (*File) Segment +

func (*File) Segment

func (f *File) Segment(name string) *Segment
Segment returns the first Segment with the given name, or nil if no such segment exists. -

type FileHeader +

type FileHeader

type FileHeader struct {
     Magic  uint32
@@ -352,7 +352,7 @@ exists.
 
 A FileHeader represents a Mach-O file header.
 
-

type FormatError +

type FormatError

type FormatError struct {
     // contains filtered or unexported fields
@@ -361,12 +361,12 @@ A FileHeader represents a Mach-O file header.
 FormatError is returned by some operations if the data does not have the correct
 format for an object file.
 
-

func (*FormatError) Error +

func (*FormatError) Error

func (e *FormatError) Error() string
-

type Load +

type Load

type Load interface {
     Raw() []byte
@@ -374,18 +374,18 @@ format for an object file.
 
 A Load represents any Mach-O load command.
 
-

type LoadBytes +

type LoadBytes

type LoadBytes []byte
A LoadBytes is the uninterpreted bytes of a Mach-O load command. -

func (LoadBytes) Raw +

func (LoadBytes) Raw

func (b LoadBytes) Raw() []byte
-

type LoadCmd +

type LoadCmd

type LoadCmd uint32
@@ -404,17 +404,17 @@ A LoadCmd is a Mach-O load command. )
-

func (LoadCmd) GoString +

func (LoadCmd) GoString

func (i LoadCmd) GoString() string
-

func (LoadCmd) String +

func (LoadCmd) String

func (i LoadCmd) String() string
-

type Nlist32 +

type Nlist32

type Nlist32 struct {
     Name  uint32
@@ -426,7 +426,7 @@ A LoadCmd is a Mach-O load command.
 
 An Nlist32 is a Mach-O 32-bit symbol table entry.
 
-

type Nlist64 +

type Nlist64

type Nlist64 struct {
     Name  uint32
@@ -438,7 +438,7 @@ An Nlist32 is a Mach-O 32-bit symbol table entry.
 
 An Nlist64 is a Mach-O 64-bit symbol table entry.
 
-

type Regs386 +

type Regs386

type Regs386 struct {
     AX    uint32
@@ -461,7 +461,7 @@ An Nlist64 is a Mach-O 64-bit symbol table entry.
 
 Regs386 is the Mach-O 386 register structure.
 
-

type RegsAMD64 +

type RegsAMD64

type RegsAMD64 struct {
     AX    uint64
@@ -489,7 +489,7 @@ Regs386 is the Mach-O 386 register structure.
 
 RegsAMD64 is the Mach-O AMD64 register structure.
 
-

type Reloc +

type Reloc

type Reloc struct {
     Addr  uint32
@@ -506,7 +506,7 @@ RegsAMD64 is the Mach-O AMD64 register structure.
 
 A Reloc represents a Mach-O relocation.
 
-

type RelocTypeARM +

type RelocTypeARM

type RelocTypeARM int
@@ -525,17 +525,17 @@ A Reloc represents a Mach-O relocation. )
-

func (RelocTypeARM) GoString +

func (RelocTypeARM) GoString

func (r RelocTypeARM) GoString() string
-

func (RelocTypeARM) String +

func (RelocTypeARM) String

func (i RelocTypeARM) String() string
-

type RelocTypeARM64 +

type RelocTypeARM64

type RelocTypeARM64 int
@@ -555,17 +555,17 @@ A Reloc represents a Mach-O relocation. )
-

func (RelocTypeARM64) GoString +

func (RelocTypeARM64) GoString

func (r RelocTypeARM64) GoString() string
-

func (RelocTypeARM64) String +

func (RelocTypeARM64) String

func (i RelocTypeARM64) String() string
-

type RelocTypeGeneric +

type RelocTypeGeneric

type RelocTypeGeneric int
@@ -580,17 +580,17 @@ A Reloc represents a Mach-O relocation. )
-

func (RelocTypeGeneric) GoString +

func (RelocTypeGeneric) GoString

func (r RelocTypeGeneric) GoString() string
-

func (RelocTypeGeneric) String +

func (RelocTypeGeneric) String

func (i RelocTypeGeneric) String() string
-

type RelocTypeX86_64 +

type RelocTypeX86_64

type RelocTypeX86_64 int
@@ -609,17 +609,17 @@ A Reloc represents a Mach-O relocation. )
-

func (RelocTypeX86_64) GoString +

func (RelocTypeX86_64) GoString

func (r RelocTypeX86_64) GoString() string
-

func (RelocTypeX86_64) String +

func (RelocTypeX86_64) String

func (i RelocTypeX86_64) String() string
-

type Rpath +

type Rpath

type Rpath struct {
     LoadBytes
@@ -628,7 +628,7 @@ A Reloc represents a Mach-O relocation.
 
 A Rpath represents a Mach-O rpath command.
 
-

type RpathCmd +

type RpathCmd

type RpathCmd struct {
     Cmd  LoadCmd
@@ -638,7 +638,7 @@ A Rpath represents a Mach-O rpath command.
 
 A RpathCmd is a Mach-O rpath command.
 
-

type Section +

type Section

type Section struct {
     SectionHeader
@@ -655,19 +655,19 @@ A RpathCmd is a Mach-O rpath command.
 }
-

func (*Section) Data +

func (*Section) Data

func (s *Section) Data() ([]byte, error)
Data reads and returns the contents of the Mach-O section. -

func (*Section) Open +

func (*Section) Open

func (s *Section) Open() io.ReadSeeker
Open returns a new ReadSeeker reading the Mach-O section. -

type Section32 +

type Section32

type Section32 struct {
     Name     [16]byte
@@ -685,7 +685,7 @@ Open returns a new ReadSeeker reading the Mach-O section.
 
 A Section32 is a 32-bit Mach-O section header.
 
-

type Section64 +

type Section64

type Section64 struct {
     Name     [16]byte
@@ -704,7 +704,7 @@ A Section32 is a 32-bit Mach-O section header.
 
 A Section64 is a 64-bit Mach-O section header.
 
-

type SectionHeader +

type SectionHeader

type SectionHeader struct {
     Name   string
@@ -719,7 +719,7 @@ A Section64 is a 64-bit Mach-O section header.
 }
-

type Segment +

type Segment

type Segment struct {
     LoadBytes
@@ -737,19 +737,19 @@ A Section64 is a 64-bit Mach-O section header.
 
 A Segment represents a Mach-O 32-bit or 64-bit load segment command.
 
-

func (*Segment) Data +

func (*Segment) Data

func (s *Segment) Data() ([]byte, error)
Data reads and returns the contents of the segment. -

func (*Segment) Open +

func (*Segment) Open

func (s *Segment) Open() io.ReadSeeker
Open returns a new ReadSeeker reading the segment. -

type Segment32 +

type Segment32

type Segment32 struct {
     Cmd     LoadCmd
@@ -767,7 +767,7 @@ Open returns a new ReadSeeker reading the segment.
 
 A Segment32 is a 32-bit Mach-O segment load command.
 
-

type Segment64 +

type Segment64

type Segment64 struct {
     Cmd     LoadCmd
@@ -785,7 +785,7 @@ A Segment32 is a 32-bit Mach-O segment load command.
 
 A Segment64 is a 64-bit Mach-O segment load command.
 
-

type SegmentHeader +

type SegmentHeader

type SegmentHeader struct {
     Cmd     LoadCmd
@@ -804,7 +804,7 @@ A Segment64 is a 64-bit Mach-O segment load command.
 A SegmentHeader is the header for a Mach-O 32-bit or 64-bit load segment
 command.
 
-

type Symbol +

type Symbol

type Symbol struct {
     Name  string
@@ -816,7 +816,7 @@ command.
 
 A Symbol is a Mach-O 32-bit or 64-bit symbol table entry.
 
-

type Symtab +

type Symtab

type Symtab struct {
     LoadBytes
@@ -826,7 +826,7 @@ A Symbol is a Mach-O 32-bit or 64-bit symbol table entry.
 
 A Symtab represents a Mach-O symbol table command.
 
-

type SymtabCmd +

type SymtabCmd

type SymtabCmd struct {
     Cmd     LoadCmd
@@ -839,7 +839,7 @@ A Symtab represents a Mach-O symbol table command.
 
 A SymtabCmd is a Mach-O symbol table command.
 
-

type Thread +

type Thread

type Thread struct {
     Cmd  LoadCmd
@@ -850,7 +850,7 @@ A SymtabCmd is a Mach-O symbol table command.
 
 A Thread is a Mach-O thread state command.
 
-

type Type +

type Type

type Type uint32
@@ -865,12 +865,12 @@ library. )
-

func (Type) GoString +

func (Type) GoString

func (t Type) GoString() string
-

func (Type) String +

func (Type) String

func (t Type) String() string
diff --git a/Source/debug/pe/pe.md b/Source/debug/pe/pe.md index 6437a34..7e95746 100644 --- a/Source/debug/pe/pe.md +++ b/Source/debug/pe/pe.md @@ -39,7 +39,7 @@ files. - [type Symbol](#Symbol) ### Package files - [file.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/pe/file.go) [pe.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/pe/pe.go) [section.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/pe/section.go) [string.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/pe/string.go) [symbol.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/pe/symbol.go) + [file.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/pe/file.go) [pe.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/pe/pe.go) [section.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/pe/section.go) [string.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/pe/string.go) [symbol.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/pe/symbol.go)

Constants

@@ -70,7 +70,7 @@ files.
const COFFSymbolSize = 18
-

type COFFSymbol +

type COFFSymbol

type COFFSymbol struct {
     Name               [8]uint8
@@ -83,14 +83,14 @@ files.
 
 COFFSymbol represents single COFF symbol table record.
 
-

func (*COFFSymbol) FullName +

func (*COFFSymbol) FullName

func (sym *COFFSymbol) FullName(st StringTable) (string, error)
FullName finds real name of symbol sym. Normally name is stored in sym.Name, but if it is longer then 8 characters, it is stored in COFF string table st instead. -

type DataDirectory +

type DataDirectory

type DataDirectory struct {
     VirtualAddress uint32
@@ -98,7 +98,7 @@ if it is longer then 8 characters, it is stored in COFF string table st instead.
 }
-

type File +

type File

type File struct {
     FileHeader
@@ -112,38 +112,38 @@ if it is longer then 8 characters, it is stored in COFF string table st instead.
 
 A File represents an open PE file.
 
-

func NewFile +

func NewFile

func NewFile(r io.ReaderAt) (*File, error)
NewFile creates a new File for accessing a PE binary in an underlying reader. -

func Open +

func Open

func Open(name string) (*File, error)
Open opens the named file using os.Open and prepares it for use as a PE binary. -

func (*File) Close +

func (*File) Close

func (f *File) Close() error
Close closes the File. If the File was created using NewFile directly instead of Open, Close has no effect. -

func (*File) DWARF +

func (*File) DWARF

func (f *File) DWARF() (*dwarf.Data, error)
-

func (*File) ImportedLibraries +

func (*File) ImportedLibraries

func (f *File) ImportedLibraries() ([]string, error)
ImportedLibraries returns the names of all libraries referred to by the binary f that are expected to be linked with the binary at dynamic link time. -

func (*File) ImportedSymbols +

func (*File) ImportedSymbols

func (f *File) ImportedSymbols() ([]string, error)
@@ -151,14 +151,14 @@ ImportedSymbols returns the names of all symbols referred to by the binary f that are expected to be satisfied by other libraries at dynamic load time. It does not return weak symbols. -

func (*File) Section +

func (*File) Section

func (f *File) Section(name string) *Section
Section returns the first section with the given name, or nil if no such section exists. -

type FileHeader +

type FileHeader

type FileHeader struct {
     Machine              uint16
@@ -171,19 +171,19 @@ exists.
 }
-

type FormatError +

type FormatError

type FormatError struct {
 }
FormatError is unused. The type is retained for compatibility. -

func (*FormatError) Error +

func (*FormatError) Error

func (e *FormatError) Error() string
-

type ImportDirectory +

type ImportDirectory

type ImportDirectory struct {
     OriginalFirstThunk uint32
@@ -195,7 +195,7 @@ FormatError is unused. The type is retained for compatibility.
 }
-

type OptionalHeader32 +

type OptionalHeader32

type OptionalHeader32 struct {
     Magic                       uint16
@@ -232,7 +232,7 @@ FormatError is unused. The type is retained for compatibility.
 }
-

type OptionalHeader64 +

type OptionalHeader64

type OptionalHeader64 struct {
     Magic                       uint16
@@ -268,7 +268,7 @@ FormatError is unused. The type is retained for compatibility.
 }
-

type Reloc +

type Reloc

type Reloc struct {
     VirtualAddress   uint32
@@ -279,7 +279,7 @@ FormatError is unused. The type is retained for compatibility.
 Reloc represents a PE COFF relocation. Each section contains its own relocation
 list.
 
-

type Section +

type Section

type Section struct {
     SectionHeader
@@ -297,19 +297,19 @@ list.
 
 Section provides access to PE COFF section.
 
-

func (*Section) Data +

func (*Section) Data

func (s *Section) Data() ([]byte, error)
Data reads and returns the contents of the PE section s. -

func (*Section) Open +

func (*Section) Open

func (s *Section) Open() io.ReadSeeker
Open returns a new ReadSeeker reading the PE section s. -

type SectionHeader +

type SectionHeader

type SectionHeader struct {
     Name                 string
@@ -327,7 +327,7 @@ Open returns a new ReadSeeker reading the PE section s.
 SectionHeader is similar to SectionHeader32 with Name field replaced by Go
 string.
 
-

type SectionHeader32 +

type SectionHeader32

type SectionHeader32 struct {
     Name                 [8]uint8
@@ -344,19 +344,19 @@ string.
 
 SectionHeader32 represents real PE COFF section header.
 
-

type StringTable +

type StringTable

type StringTable []byte
StringTable is a COFF string table. -

func (StringTable) String +

func (StringTable) String

func (st StringTable) String(start uint32) (string, error)
String extracts string from COFF string table st at offset start. -

type Symbol +

type Symbol

type Symbol struct {
     Name          string
diff --git a/Source/debug/plan9obj/plan9obj.md b/Source/debug/plan9obj/plan9obj.md
index 2780f0f..4730c5a 100644
--- a/Source/debug/plan9obj/plan9obj.md
+++ b/Source/debug/plan9obj/plan9obj.md
@@ -24,7 +24,7 @@ Package plan9obj implements access to Plan 9 a.out object files.
 - [type Sym](#Sym)
 
 ### Package files
- [file.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/plan9obj/file.go) [plan9obj.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/debug/plan9obj/plan9obj.go)
+ [file.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/plan9obj/file.go) [plan9obj.go](//github.com/golang/go/blob/release-branch.go1.10/src/debug/plan9obj/plan9obj.go)
 
 

Constants

@@ -37,7 +37,7 @@ Package plan9obj implements access to Plan 9 a.out object files. )
-

type File +

type File

type File struct {
     FileHeader
@@ -47,40 +47,40 @@ Package plan9obj implements access to Plan 9 a.out object files.
 
 A File represents an open Plan 9 a.out file.
 
-

func NewFile +

func NewFile

func NewFile(r io.ReaderAt) (*File, error)
NewFile creates a new File for accessing a Plan 9 binary in an underlying reader. The Plan 9 binary is expected to start at position 0 in the ReaderAt. -

func Open +

func Open

func Open(name string) (*File, error)
Open opens the named file using os.Open and prepares it for use as a Plan 9 a.out binary. -

func (*File) Close +

func (*File) Close

func (f *File) Close() error
Close closes the File. If the File was created using NewFile directly instead of Open, Close has no effect. -

func (*File) Section +

func (*File) Section

func (f *File) Section(name string) *Section
Section returns a section with the given name, or nil if no such section exists. -

func (*File) Symbols +

func (*File) Symbols

func (f *File) Symbols() ([]Sym, error)
Symbols returns the symbol table for f. -

type FileHeader +

type FileHeader

type FileHeader struct {
     Magic       uint32
@@ -93,7 +93,7 @@ Symbols returns the symbol table for f.
 
 A FileHeader represents a Plan 9 a.out file header.
 
-

type Section +

type Section

type Section struct {
     SectionHeader
@@ -110,19 +110,19 @@ A FileHeader represents a Plan 9 a.out file header.
 
 A Section represents a single section in a Plan 9 a.out file.
 
-

func (*Section) Data +

func (*Section) Data

func (s *Section) Data() ([]byte, error)
Data reads and returns the contents of the Plan 9 a.out section. -

func (*Section) Open +

func (*Section) Open

func (s *Section) Open() io.ReadSeeker
Open returns a new ReadSeeker reading the Plan 9 a.out section. -

type SectionHeader +

type SectionHeader

type SectionHeader struct {
     Name   string
@@ -133,7 +133,7 @@ Open returns a new ReadSeeker reading the Plan 9 a.out section.
 A SectionHeader represents a single Plan 9 a.out section header. This structure
 doesn't exist on-disk, but eases navigation through the object file.
 
-

type Sym +

type Sym

type Sym struct {
     Value uint64
diff --git a/Source/encoding/ascii85/ascii85.md b/Source/encoding/ascii85/ascii85.md
index afe6aa5..19c7d60 100644
--- a/Source/encoding/ascii85/ascii85.md
+++ b/Source/encoding/ascii85/ascii85.md
@@ -19,9 +19,9 @@ and Adobe's PostScript and PDF document formats.
   - [func (e CorruptInputError) Error() string](#CorruptInputError.Error)
 
 ### Package files
- [ascii85.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/ascii85/ascii85.go)
+ [ascii85.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/ascii85/ascii85.go)
 
-

func Decode +

func Decode

func Decode(dst, src []byte, flush bool) (ndst, nsrc int, err error)
@@ -38,7 +38,7 @@ and processes it completely rather than wait for the completion of another NewDecoder wraps an io.Reader interface around Decode. -

func Encode +

func Encode

func Encode(dst, src []byte) int
@@ -52,19 +52,19 @@ data stream. Use NewEncoder() instead. Often, ascii85-encoded data is wrapped in <~ and ~> symbols. Encode does not add these. -

func MaxEncodedLen +

func MaxEncodedLen

func MaxEncodedLen(n int) int
MaxEncodedLen returns the maximum length of an encoding of n source bytes. -

func NewDecoder +

func NewDecoder

func NewDecoder(r io.Reader) io.Reader
NewDecoder constructs a new ascii85 stream decoder. -

func NewEncoder +

func NewEncoder

func NewEncoder(w io.Writer) io.WriteCloser
@@ -73,12 +73,12 @@ writer will be encoded and then written to w. Ascii85 encodings operate in 32-bit blocks; when finished writing, the caller must Close the returned encoder to flush any trailing partial block. -

type CorruptInputError +

type CorruptInputError

type CorruptInputError int64
-

func (CorruptInputError) Error +

func (CorruptInputError) Error

func (e CorruptInputError) Error() string
diff --git a/Source/encoding/asn1/asn1.md b/Source/encoding/asn1/asn1.md index 27d7477..883cd1b 100644 --- a/Source/encoding/asn1/asn1.md +++ b/Source/encoding/asn1/asn1.md @@ -35,7 +35,7 @@ http://luca.ntop.org/Teaching/Appunti/asn1.html. - [func (e SyntaxError) Error() string](#SyntaxError.Error) ### Package files - [asn1.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/asn1/asn1.go) [common.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/asn1/common.go) [marshal.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/asn1/marshal.go) + [asn1.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/asn1/asn1.go) [common.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/asn1/common.go) [marshal.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/asn1/marshal.go)

Constants

@@ -80,7 +80,7 @@ NullBytes contains bytes representing the DER-encoded ASN.1 NULL type. NullRawValue is a RawValue with its Tag set to the ASN.1 NULL type tag (5). -

func Marshal +

func Marshal

func Marshal(val interface{}) ([]byte, error)
@@ -96,14 +96,14 @@ used: utc: causes time.Time to be marshaled as ASN.1, UTCTime values generalized: causes time.Time to be marshaled as ASN.1, GeneralizedTime values -

func MarshalWithParams +

func MarshalWithParams

func MarshalWithParams(val interface{}, params string) ([]byte, error)
MarshalWithParams allows field parameters to be specified for the top-level element. The form of the params is the same as the field tags. -

func Unmarshal +

func Unmarshal

func Unmarshal(b []byte, val interface{}) (rest []byte, err error)
@@ -158,14 +158,14 @@ cannot be given. Other ASN.1 types are not supported; if it encounters them, Unmarshal returns a parse error. -

func UnmarshalWithParams +

func UnmarshalWithParams

func UnmarshalWithParams(b []byte, val interface{}, params string) (rest []byte, err error)
UnmarshalWithParams allows field parameters to be specified for the top-level element. The form of the params is the same as the field tags. -

type BitString +

type BitString

type BitString struct {
     Bytes     []byte // bits packed into bytes.
@@ -176,50 +176,50 @@ BitString is the structure to use when you want an ASN.1 BIT STRING type. A bit
 string is padded up to the nearest byte in memory and the number of valid bits
 is recorded. Padding bits will be zero.
 
-

func (BitString) At +

func (BitString) At

func (b BitString) At(i int) int
At returns the bit at the given index. If the index is out of range it returns false. -

func (BitString) RightAlign +

func (BitString) RightAlign

func (b BitString) RightAlign() []byte
RightAlign returns a slice where the padding bits are at the beginning. The slice may share memory with the BitString. -

type Enumerated +

type Enumerated

type Enumerated int
An Enumerated is represented as a plain int. -

type Flag +

type Flag

type Flag bool
A Flag accepts any data and is set to true if present. -

type ObjectIdentifier +

type ObjectIdentifier

type ObjectIdentifier []int
An ObjectIdentifier represents an ASN.1 OBJECT IDENTIFIER. -

func (ObjectIdentifier) Equal +

func (ObjectIdentifier) Equal

func (oi ObjectIdentifier) Equal(other ObjectIdentifier) bool
Equal reports whether oi and other represent the same identifier. -

func (ObjectIdentifier) String +

func (ObjectIdentifier) String

func (oi ObjectIdentifier) String() string
-

type RawContent +

type RawContent

type RawContent []byte
@@ -227,7 +227,7 @@ RawContent is used to signal that the undecoded, DER data needs to be preserved for a struct. To use it, the first field of the struct must have this type. It's an error for any of the other fields to have this type. -

type RawValue +

type RawValue

type RawValue struct {
     Class, Tag int
@@ -238,7 +238,7 @@ an error for any of the other fields to have this type.
 
 A RawValue represents an undecoded ASN.1 object.
 
-

type StructuralError +

type StructuralError

type StructuralError struct {
     Msg string
@@ -247,12 +247,12 @@ A RawValue represents an undecoded ASN.1 object.
 A StructuralError suggests that the ASN.1 data is valid, but the Go type which
 is receiving it doesn't match.
 
-

func (StructuralError) Error +

func (StructuralError) Error

func (e StructuralError) Error() string
-

type SyntaxError +

type SyntaxError

type SyntaxError struct {
     Msg string
@@ -260,7 +260,7 @@ is receiving it doesn't match.
 
 A SyntaxError suggests that the ASN.1 data is invalid.
 
-

func (SyntaxError) Error +

func (SyntaxError) Error

func (e SyntaxError) Error() string
diff --git a/Source/encoding/base32/base32.md b/Source/encoding/base32/base32.md index 84ab758..c67bd45 100644 --- a/Source/encoding/base32/base32.md +++ b/Source/encoding/base32/base32.md @@ -32,7 +32,7 @@ Package base32 implements base32 encoding as specified by RFC 4648. - [NewEncoder](#exampleNewEncoder) ### Package files - [base32.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/base32/base32.go) + [base32.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/base32/base32.go)

Constants

@@ -53,13 +53,13 @@ typically used in DNS. StdEncoding is the standard base32 encoding, as defined in RFC 4648. -

func NewDecoder +

func NewDecoder

func NewDecoder(enc *Encoding, r io.Reader) io.Reader
NewDecoder constructs a new base32 stream decoder. -

func NewEncoder +

func NewEncoder

func NewEncoder(enc *Encoding, w io.Writer) io.WriteCloser
@@ -81,17 +81,17 @@ Example: // Output: // MZXW6ADCMFZA==== -

type CorruptInputError +

type CorruptInputError

type CorruptInputError int64
-

func (CorruptInputError) Error +

func (CorruptInputError) Error

func (e CorruptInputError) Error() string
-

type Encoding +

type Encoding

type Encoding struct {
     // contains filtered or unexported fields
@@ -102,14 +102,14 @@ alphabet. The most common is the "base32" encoding introduced for SASL GSSAPI
 and standardized in RFC 4648. The alternate "base32hex" encoding is used in
 DNSSEC.
 
-

func NewEncoding +

func NewEncoding

func NewEncoding(encoder string) *Encoding
NewEncoding returns a new Encoding defined by the given alphabet, which must be a 32-byte string. -

func (*Encoding) Decode +

func (*Encoding) Decode

func (enc *Encoding) Decode(dst, src []byte) (n int, err error)
@@ -119,7 +119,7 @@ src contains invalid base32 data, it will return the number of bytes successfully written and CorruptInputError. New line characters (\r and \n) are ignored. -

func (*Encoding) DecodeString +

func (*Encoding) DecodeString

func (enc *Encoding) DecodeString(s string) ([]byte, error)
@@ -138,14 +138,14 @@ Example: // Output: // "some data with \x00 and \ufeff" -

func (*Encoding) DecodedLen +

func (*Encoding) DecodedLen

func (enc *Encoding) DecodedLen(n int) int
DecodedLen returns the maximum length in bytes of the decoded data corresponding to n bytes of base32-encoded data. -

func (*Encoding) Encode +

func (*Encoding) Encode

func (enc *Encoding) Encode(dst, src []byte)
@@ -156,7 +156,7 @@ The encoding pads the output to a multiple of 8 bytes, so Encode is not appropriate for use on individual blocks of a large data stream. Use NewEncoder() instead. -

func (*Encoding) EncodeToString +

func (*Encoding) EncodeToString

func (enc *Encoding) EncodeToString(src []byte) string
@@ -171,14 +171,14 @@ Example: // Output: // MFXHSIBLEBXWYZBAEYQGIYLUME====== -

func (*Encoding) EncodedLen +

func (*Encoding) EncodedLen

func (enc *Encoding) EncodedLen(n int) int
EncodedLen returns the length in bytes of the base32 encoding of an input buffer of length n. -

func (Encoding) WithPadding +

func (Encoding) WithPadding

func (enc Encoding) WithPadding(padding rune) *Encoding
diff --git a/Source/encoding/base64/base64.md b/Source/encoding/base64/base64.md index 9fff92a..b08b1b0 100644 --- a/Source/encoding/base64/base64.md +++ b/Source/encoding/base64/base64.md @@ -50,7 +50,7 @@ Example: - [NewEncoder](#exampleNewEncoder) ### Package files - [base64.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/base64/base64.go) + [base64.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/base64/base64.go)

Constants

@@ -82,13 +82,13 @@ StdEncoding is the standard base64 encoding, as defined in RFC 4648. URLEncoding is the alternate base64 encoding defined in RFC 4648. It is typically used in URLs and file names. -

func NewDecoder +

func NewDecoder

func NewDecoder(enc *Encoding, r io.Reader) io.Reader
NewDecoder constructs a new base64 stream decoder. -

func NewEncoder +

func NewEncoder

func NewEncoder(enc *Encoding, w io.Writer) io.WriteCloser
@@ -110,17 +110,17 @@ Example: // Output: // Zm9vAGJhcg== -

type CorruptInputError +

type CorruptInputError

type CorruptInputError int64
-

func (CorruptInputError) Error +

func (CorruptInputError) Error

func (e CorruptInputError) Error() string
-

type Encoding +

type Encoding

type Encoding struct {
     // contains filtered or unexported fields
@@ -132,7 +132,7 @@ and used in MIME (RFC 2045) and PEM (RFC 1421). RFC 4648 also defines an
 alternate encoding, which is the standard encoding with - and _ substituted for
 + and /.
 
-

func NewEncoding +

func NewEncoding

func NewEncoding(encoder string) *Encoding
@@ -141,7 +141,7 @@ must be a 64-byte string that does not contain the padding character or CR / LF ('\r', '\n'). The resulting Encoding uses the default padding character ('='), which may be changed or disabled via WithPadding. -

func (*Encoding) Decode +

func (*Encoding) Decode

func (enc *Encoding) Decode(dst, src []byte) (n int, err error)
@@ -151,7 +151,7 @@ src contains invalid base64 data, it will return the number of bytes successfully written and CorruptInputError. New line characters (\r and \n) are ignored. -

func (*Encoding) DecodeString +

func (*Encoding) DecodeString

func (enc *Encoding) DecodeString(s string) ([]byte, error)
@@ -170,14 +170,14 @@ Example: // Output: // "some data with \x00 and \ufeff" -

func (*Encoding) DecodedLen +

func (*Encoding) DecodedLen

func (enc *Encoding) DecodedLen(n int) int
DecodedLen returns the maximum length in bytes of the decoded data corresponding to n bytes of base64-encoded data. -

func (*Encoding) Encode +

func (*Encoding) Encode

func (enc *Encoding) Encode(dst, src []byte)
@@ -188,7 +188,7 @@ The encoding pads the output to a multiple of 4 bytes, so Encode is not appropriate for use on individual blocks of a large data stream. Use NewEncoder() instead. -

func (*Encoding) EncodeToString +

func (*Encoding) EncodeToString

func (enc *Encoding) EncodeToString(src []byte) string
@@ -203,14 +203,14 @@ Example: // Output: // YW55ICsgb2xkICYgZGF0YQ== -

func (*Encoding) EncodedLen +

func (*Encoding) EncodedLen

func (enc *Encoding) EncodedLen(n int) int
EncodedLen returns the length in bytes of the base64 encoding of an input buffer of length n. -

func (Encoding) Strict +

func (Encoding) Strict

func (enc Encoding) Strict() *Encoding
@@ -218,7 +218,7 @@ Strict creates a new encoding identical to enc except with strict decoding enabled. In this mode, the decoder requires that trailing padding bits are zero, as described in RFC 4648 section 3.5. -

func (Encoding) WithPadding +

func (Encoding) WithPadding

func (enc Encoding) WithPadding(padding rune) *Encoding
diff --git a/Source/encoding/binary/binary.md b/Source/encoding/binary/binary.md index a8b7634..12f68b4 100644 --- a/Source/encoding/binary/binary.md +++ b/Source/encoding/binary/binary.md @@ -50,7 +50,7 @@ buffers. - [Write (Multi)](#exampleWrite_multi) ### Package files - [binary.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/binary/binary.go) [varint.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/binary/varint.go) + [binary.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/binary/binary.go) [varint.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/binary/varint.go)

Constants

@@ -72,7 +72,7 @@ BigEndian is the big-endian implementation of ByteOrder. LittleEndian is the little-endian implementation of ByteOrder. -

func PutUvarint +

func PutUvarint

func PutUvarint(buf []byte, x uint64) int
@@ -96,7 +96,7 @@ Example: // ff01 // 8002 -

func PutVarint +

func PutVarint

func PutVarint(buf []byte, x int64) int
@@ -123,7 +123,7 @@ Example: // 7e // 8001 -

func Read +

func Read

func Read(r io.Reader, order ByteOrder, data interface{}) error
@@ -180,19 +180,19 @@ Example: // 01 02 03 // 61374 -

func ReadUvarint +

func ReadUvarint

func ReadUvarint(r io.ByteReader) (uint64, error)
ReadUvarint reads an encoded unsigned integer from r and returns it as a uint64. -

func ReadVarint +

func ReadVarint

func ReadVarint(r io.ByteReader) (int64, error)
ReadVarint reads an encoded signed integer from r and returns it as an int64. -

func Size +

func Size

func Size(v interface{}) int
@@ -200,7 +200,7 @@ Size returns how many bytes Write would generate to encode the value v, which must be a fixed-size value or a slice of fixed-size values, or a pointer to such data. If v is neither of these, Size returns -1. -

func Uvarint +

func Uvarint

func Uvarint(buf []byte) (uint64, int)
@@ -238,7 +238,7 @@ Example: // 255 // 256 -

func Varint +

func Varint

func Varint(buf []byte) (int64, int)
@@ -282,7 +282,7 @@ Example: // 63 // 64 -

func Write +

func Write

func Write(w io.Writer, order ByteOrder, data interface{}) error
@@ -323,7 +323,7 @@ Example: fmt.Printf("%x", buf.Bytes()) // Output: beefcafe -

type ByteOrder +

type ByteOrder

type ByteOrder interface {
     Uint16([]byte) uint16
diff --git a/Source/encoding/csv/csv.md b/Source/encoding/csv/csv.md
index d42ab9c..98879e1 100644
--- a/Source/encoding/csv/csv.md
+++ b/Source/encoding/csv/csv.md
@@ -76,7 +76,7 @@ results in
 - [Writer.WriteAll](#exampleWriter_WriteAll)
 
 ### Package files
- [reader.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/csv/reader.go) [writer.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/csv/writer.go)
+ [reader.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/csv/reader.go) [writer.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/csv/writer.go)
 
 

Variables

@@ -89,7 +89,7 @@ results in These are the errors that can be returned in ParseError.Err. -

type ParseError +

type ParseError

type ParseError struct {
     StartLine int   // Line where the record starts
@@ -101,12 +101,12 @@ These are the errors that can be returned in ParseError.Err.
 A ParseError is returned for parsing errors. Line numbers are 1-indexed and
 columns are 0-indexed.
 
-

func (*ParseError) Error +

func (*ParseError) Error

func (e *ParseError) Error() string
-

type Reader +

type Reader

type Reader struct {
     // Comma is the field delimiter.
@@ -209,13 +209,13 @@ Example:
     // Output:
     // [[first_name last_name username] [Rob Pike rob] [Ken Thompson ken] [Robert Griesemer gri]]
 
-

func NewReader +

func NewReader

func NewReader(r io.Reader) *Reader
NewReader returns a new Reader that reads from r. -

func (*Reader) Read +

func (*Reader) Read

func (r *Reader) Read() (record []string, err error)
@@ -226,7 +226,7 @@ or a non-nil error, but not both. If there is no data left to be read, Read returns nil, io.EOF. If ReuseRecord is true, the returned slice may be shared between multiple calls to Read. -

func (*Reader) ReadAll +

func (*Reader) ReadAll

func (r *Reader) ReadAll() (records [][]string, err error)
@@ -254,7 +254,7 @@ Example: // Output: // [[first_name last_name username] [Rob Pike rob] [Ken Thompson ken] [Robert Griesemer gri]] -

type Writer +

type Writer

type Writer struct {
     Comma   rune // Field delimiter (set to ',' by NewWriter)
@@ -302,33 +302,33 @@ Example:
     // Ken,Thompson,ken
     // Robert,Griesemer,gri
 
-

func NewWriter +

func NewWriter

func NewWriter(w io.Writer) *Writer
NewWriter returns a new Writer that writes to w. -

func (*Writer) Error +

func (*Writer) Error

func (w *Writer) Error() error
Error reports any error that has occurred during a previous Write or Flush. -

func (*Writer) Flush +

func (*Writer) Flush

func (w *Writer) Flush()
Flush writes any buffered data to the underlying io.Writer. To check if an error occurred during the Flush, call Error. -

func (*Writer) Write +

func (*Writer) Write

func (w *Writer) Write(record []string) error
Writer writes a single CSV record to w along with any necessary quoting. A record is a slice of strings with each string being one field. -

func (*Writer) WriteAll +

func (*Writer) WriteAll

func (w *Writer) WriteAll(records [][]string) error
diff --git a/Source/encoding/encoding.md b/Source/encoding/encoding.md index 7a789a9..11235f2 100644 --- a/Source/encoding/encoding.md +++ b/Source/encoding/encoding.md @@ -20,9 +20,9 @@ net.IP. The interfaces come in pairs that produce and consume encoded data. - [type TextUnmarshaler](#TextUnmarshaler) ### Package files - [encoding.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/encoding.go) + [encoding.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/encoding.go) -

type BinaryMarshaler +

type BinaryMarshaler

type BinaryMarshaler interface {
     MarshalBinary() (data []byte, err error)
@@ -33,7 +33,7 @@ itself into a binary form.
 
 MarshalBinary encodes the receiver into a binary form and returns the result.
 
-

type BinaryUnmarshaler +

type BinaryUnmarshaler

type BinaryUnmarshaler interface {
     UnmarshalBinary(data []byte) error
@@ -46,7 +46,7 @@ UnmarshalBinary must be able to decode the form generated by MarshalBinary.
 UnmarshalBinary must copy the data if it wishes to retain the data after
 returning.
 
-

type TextMarshaler +

type TextMarshaler

type TextMarshaler interface {
     MarshalText() (text []byte, err error)
@@ -57,7 +57,7 @@ into a textual form.
 
 MarshalText encodes the receiver into UTF-8-encoded text and returns the result.
 
-

type TextUnmarshaler +

type TextUnmarshaler

type TextUnmarshaler interface {
     UnmarshalText(text []byte) error
diff --git a/Source/encoding/gob/gob.md b/Source/encoding/gob/gob.md
index d46f2e3..4ad9d06 100644
--- a/Source/encoding/gob/gob.md
+++ b/Source/encoding/gob/gob.md
@@ -501,9 +501,9 @@ Example:
 - [Package (Interface)](#example_interface)
 
 ### Package files
- [dec_helpers.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/gob/dec_helpers.go) [decode.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/gob/decode.go) [decoder.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/gob/decoder.go) [doc.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/gob/doc.go) [enc_helpers.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/gob/enc_helpers.go) [encode.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/gob/encode.go) [encoder.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/gob/encoder.go) [error.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/gob/error.go) [type.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/gob/type.go)
+ [dec_helpers.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/gob/dec_helpers.go) [decode.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/gob/decode.go) [decoder.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/gob/decoder.go) [doc.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/gob/doc.go) [enc_helpers.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/gob/enc_helpers.go) [encode.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/gob/encode.go) [encoder.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/gob/encoder.go) [error.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/gob/error.go) [type.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/gob/type.go)
 
-

func Register +

func Register

func Register(value interface{})
@@ -514,14 +514,14 @@ of interface values need to be registered. Expecting to be used only during initialization, it panics if the mapping between types and names is not a bijection. -

func RegisterName +

func RegisterName

func RegisterName(name string, value interface{})
RegisterName is like Register but uses the provided name rather than the type's default. -

type CommonType +

type CommonType

type CommonType struct {
     Name string
@@ -532,7 +532,7 @@ CommonType holds elements of all types. It is a historical artifact, kept for
 binary compatibility and exported only for the benefit of the package's encoding
 of type descriptors. It is not intended for direct use by clients.
 
-

type Decoder +

type Decoder

type Decoder struct {
     // contains filtered or unexported fields
@@ -545,14 +545,14 @@ The Decoder does only basic sanity checking on decoded input sizes, and its
 limits are not configurable. Take caution when decoding gob data from untrusted
 sources.
 
-

func NewDecoder +

func NewDecoder

func NewDecoder(r io.Reader) *Decoder
NewDecoder returns a new decoder that reads from the io.Reader. If r does not also implement io.ByteReader, it will be wrapped in a bufio.Reader. -

func (*Decoder) Decode +

func (*Decoder) Decode

func (dec *Decoder) Decode(e interface{}) error
@@ -562,7 +562,7 @@ discarded. Otherwise, the value underlying e must be a pointer to the correct type for the next data item received. If the input is at EOF, Decode returns io.EOF and does not modify e. -

func (*Decoder) DecodeValue +

func (*Decoder) DecodeValue

func (dec *Decoder) DecodeValue(v reflect.Value) error
@@ -572,7 +572,7 @@ it stores the value into v. In that case, v must represent a non-nil pointer to data or be an assignable reflect.Value (v.CanSet()) If the input is at EOF, DecodeValue returns io.EOF and does not modify v. -

type Encoder +

type Encoder

type Encoder struct {
     // contains filtered or unexported fields
@@ -581,13 +581,13 @@ DecodeValue returns io.EOF and does not modify v.
 An Encoder manages the transmission of type and data information to the other
 side of a connection.
 
-

func NewEncoder +

func NewEncoder

func NewEncoder(w io.Writer) *Encoder
NewEncoder returns a new encoder that will transmit on the io.Writer. -

func (*Encoder) Encode +

func (*Encoder) Encode

func (enc *Encoder) Encode(e interface{}) error
@@ -596,7 +596,7 @@ guaranteeing that all necessary type information has been transmitted first. Passing a nil pointer to Encoder will panic, as they cannot be transmitted by gob. -

func (*Encoder) EncodeValue +

func (*Encoder) EncodeValue

func (enc *Encoder) EncodeValue(value reflect.Value) error
@@ -605,7 +605,7 @@ guaranteeing that all necessary type information has been transmitted first. Passing a nil pointer to EncodeValue will panic, as they cannot be transmitted by gob. -

type GobDecoder +

type GobDecoder

type GobDecoder interface {
     // GobDecode overwrites the receiver, which must be a pointer,
@@ -617,7 +617,7 @@ by gob.
 GobDecoder is the interface describing data that provides its own routine for
 decoding transmitted values sent by a GobEncoder.
 
-

type GobEncoder +

type GobEncoder

type GobEncoder interface {
     // GobEncode returns a byte slice representing the encoding of the
diff --git a/Source/encoding/hex/hex.md b/Source/encoding/hex/hex.md
index 40e85ae..755ceef 100644
--- a/Source/encoding/hex/hex.md
+++ b/Source/encoding/hex/hex.md
@@ -33,7 +33,7 @@ Package hex implements hexadecimal encoding and decoding.
 - [EncodeToString](#exampleEncodeToString)
 
 ### Package files
- [hex.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/hex/hex.go)
+ [hex.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/hex/hex.go)
 
 

Variables

@@ -43,7 +43,7 @@ ErrLength reports an attempt to decode an odd-length input using Decode or DecodeString. The stream-based Decoder returns io.ErrUnexpectedEOF instead of ErrLength. -

func Decode +

func Decode

func Decode(dst, src []byte) (int, error)
@@ -70,7 +70,7 @@ Example: // Output: // Hello Gopher! -

func DecodeString +

func DecodeString

func DecodeString(s string) ([]byte, error)
@@ -94,14 +94,14 @@ Example: // Output: // Hello Gopher! -

func DecodedLen +

func DecodedLen

func DecodedLen(x int) int
DecodedLen returns the length of a decoding of x source bytes. Specifically, it returns x / 2. -

func Dump +

func Dump

func Dump(data []byte) string
@@ -120,7 +120,7 @@ Example: // 00000010 75 72 63 65 20 70 72 6f 67 72 61 6d 6d 69 6e 67 |urce programming| // 00000020 20 6c 61 6e 67 75 61 67 65 2e | language.| -

func Dumper +

func Dumper

func Dumper(w io.Writer) io.WriteCloser
@@ -153,7 +153,7 @@ Example: // 00000050 65 20 74 6f 20 67 6f 6c 61 6e 67 2d 61 6e 6e 6f |e to golang-anno| // 00000060 75 6e 63 65 2e |unce.| -

func Encode +

func Encode

func Encode(dst, src []byte) int
@@ -174,7 +174,7 @@ Example: // Output: // 48656c6c6f20476f7068657221 -

func EncodeToString +

func EncodeToString

func EncodeToString(src []byte) string
@@ -191,35 +191,35 @@ Example: // Output: // 48656c6c6f -

func EncodedLen +

func EncodedLen

func EncodedLen(n int) int
EncodedLen returns the length of an encoding of n source bytes. Specifically, it returns n * 2. -

func NewDecoder +

func NewDecoder

func NewDecoder(r io.Reader) io.Reader
NewDecoder returns an io.Reader that decodes hexadecimal characters from r. NewDecoder expects that r contain only an even number of hexadecimal characters. -

func NewEncoder +

func NewEncoder

func NewEncoder(w io.Writer) io.Writer
NewEncoder returns an io.Writer that writes lowercase hexadecimal characters to w. -

type InvalidByteError +

type InvalidByteError

type InvalidByteError byte
InvalidByteError values describe errors resulting from an invalid byte in a hex string. -

func (InvalidByteError) Error +

func (InvalidByteError) Error

func (e InvalidByteError) Error() string
diff --git a/Source/encoding/json/json.md b/Source/encoding/json/json.md index c6881ab..0582580 100644 --- a/Source/encoding/json/json.md +++ b/Source/encoding/json/json.md @@ -150,16 +150,16 @@ Example: - [Package (CustomMarshalJSON)](#example_customMarshalJSON) ### Package files - [decode.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/json/decode.go) [encode.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/json/encode.go) [fold.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/json/fold.go) [indent.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/json/indent.go) [scanner.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/json/scanner.go) [stream.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/json/stream.go) [tables.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/json/tables.go) [tags.go](//github.com/golang/go/blob/2ea7d3461bb41d0ae12b56ee52d43314bcdb97f9/src/encoding/json/tags.go) + [decode.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/json/decode.go) [encode.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/json/encode.go) [fold.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/json/fold.go) [indent.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/json/indent.go) [scanner.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/json/scanner.go) [stream.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/json/stream.go) [tables.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/json/tables.go) [tags.go](//github.com/golang/go/blob/release-branch.go1.10/src/encoding/json/tags.go) -

func Compact +

func Compact

func Compact(dst *bytes.Buffer, src []byte) error
Compact appends to dst the JSON-encoded src with insignificant space characters elided. -

func HTMLEscape +

func HTMLEscape

func HTMLEscape(dst *bytes.Buffer, src []byte)
@@ -169,7 +169,7 @@ characters inside string literals changed to \u003c, \u003e, \u0026, \u2028, historical reasons, web browsers don't honor standard HTML escaping within