go/src/cmd/go/internal/modindex/write.go

const indexVersion

// encodeModuleBytes produces the encoded representation of the module index.
// encodeModuleBytes may modify the packages slice.
func encodeModuleBytes(packages []*rawPackage) []byte {}

func encodePackageBytes(p *rawPackage) []byte {}

func encodePackage(e *encoder, p *rawPackage) {}

func encodeFile(e *encoder, f *rawFile) {}

func newEncoder() *encoder {}

func (e *encoder) Position(position token.Position) {}

type encoder

func (e *encoder) Pos() int {}

func (e *encoder) Bytes(b []byte) {}

func (e *encoder) String(s string) {}

func (e *encoder) Bool(b bool) {}

func (e *encoder) Uint32(n uint32) {}

// Int encodes n. Note that all ints are written to the index as uint32s,
// and to avoid problems on 32-bit systems we require fitting into a 32-bit int.
func (e *encoder) Int(n int) {}

func (e *encoder) IntAt(n int, at int) {}