SYMBOL INDEX (775 symbols across 85 files) FILE: bytereplacer/bytereplacer.go type Replacer (line 24) | type Replacer struct method Replace (line 72) | func (r *Replacer) Replace(s []byte) []byte { type replacer (line 29) | type replacer interface function New (line 36) | func New(oldnew ...string) *Replacer { type trieNode (line 76) | type trieNode struct method add (line 84) | func (t *trieNode) add(key, val []byte, priority int, r *genericReplac... type genericReplacer (line 185) | type genericReplacer struct method lookup (line 147) | func (r *genericReplacer) lookup(s []byte, ignoreRoot bool) (val []byt... method Replace (line 226) | func (r *genericReplacer) Replace(s []byte) []byte { function makeGenericReplacer (line 194) | func makeGenericReplacer(oldnew []string) *genericReplacer { type byteReplacer (line 279) | type byteReplacer method Replace (line 281) | func (r *byteReplacer) Replace(s []byte) []byte { FILE: bytereplacer/bytereplacer_test.go function TestReplacer (line 43) | func TestReplacer(t *testing.T) { function BenchmarkGenericNoMatch (line 310) | func BenchmarkGenericNoMatch(b *testing.B) { function BenchmarkGenericMatch1 (line 318) | func BenchmarkGenericMatch1(b *testing.B) { function BenchmarkGenericMatch2 (line 326) | func BenchmarkGenericMatch2(b *testing.B) { function benchmarkSingleString (line 333) | func benchmarkSingleString(b *testing.B, pattern, text string) { function BenchmarkSingleMaxSkipping (line 344) | func BenchmarkSingleMaxSkipping(b *testing.B) { function BenchmarkSingleLongSuffixFail (line 348) | func BenchmarkSingleLongSuffixFail(b *testing.B) { function BenchmarkSingleMatch (line 352) | func BenchmarkSingleMatch(b *testing.B) { function benchmarkReplacer (line 356) | func benchmarkReplacer(b *testing.B, r *Replacer, str string) { function BenchmarkByteByteNoMatch (line 365) | func BenchmarkByteByteNoMatch(b *testing.B) { function BenchmarkByteByteMatch (line 369) | func BenchmarkByteByteMatch(b *testing.B) { function BenchmarkByteStringMatch (line 373) | func BenchmarkByteStringMatch(b *testing.B) { function BenchmarkHTMLEscapeNew (line 377) | func BenchmarkHTMLEscapeNew(b *testing.B) { function BenchmarkHTMLEscapeOld (line 381) | func BenchmarkHTMLEscapeOld(b *testing.B) { function oldHTMLEscape (line 391) | func oldHTMLEscape(s []byte) []byte { function BenchmarkByteByteReplaces (line 401) | func BenchmarkByteByteReplaces(b *testing.B) { function BenchmarkByteByteMap (line 409) | func BenchmarkByteByteMap(b *testing.B) { FILE: cloud/cloudlaunch/cloudlaunch.go function readFile (line 49) | func readFile(v string) string { constant baseConfig (line 57) | baseConfig = `#cloud-config type RestartPolicy (line 83) | type RestartPolicy constant RestartOnUpdates (line 86) | RestartOnUpdates RestartPolicy = iota constant RestartNever (line 87) | RestartNever type Config (line 92) | type Config struct method binaryURL (line 132) | func (c *Config) binaryURL() string { method instName (line 136) | func (c *Config) instName() string { return c.Name } method zone (line 137) | func (c *Config) zone() string { return strDefault(c.Zone, "... method machineType (line 138) | func (c *Config) machineType() string { return strDefault(c.Machine... method binaryObject (line 139) | func (c *Config) binaryObject() string { return strDefault(c.BinaryO... method updateStrategy (line 140) | func (c *Config) updateStrategy() string { return strDefault(c.UpdateS... method projectAPIURL (line 142) | func (c *Config) projectAPIURL() string { method machineTypeURL (line 145) | func (c *Config) machineTypeURL() string { method MaybeDeploy (line 160) | func (c *Config) MaybeDeploy() { method restartLoop (line 197) | func (c *Config) restartLoop() { type cloudLaunch (line 126) | type cloudLaunch struct method uploadBinary (line 232) | func (cl *cloudLaunch) uploadBinary() { method findIP (line 308) | func (cl *cloudLaunch) findIP() string { method createInstance (line 329) | func (cl *cloudLaunch) createInstance() { method lookupInstance (line 426) | func (cl *cloudLaunch) lookupInstance() *compute.Instance { method instanceDisk (line 436) | func (cl *cloudLaunch) instanceDisk() *compute.AttachedDisk { function strDefault (line 149) | func strDefault(a, b string) string { function getSelfPath (line 278) | func getSelfPath() string { function zoneInRegion (line 289) | func zoneInRegion(zone, regionURL string) bool { FILE: cloud/google/gceutil/gceutil.go function CoreOSImageURL (line 33) | func CoreOSImageURL(cl *http.Client) (string, error) { function COSImageURL (line 39) | func COSImageURL(cl *http.Client) (string, error) { function osImageURL (line 43) | func osImageURL(cl *http.Client, cos bool) (string, error) { type InstanceGroupAndManager (line 98) | type InstanceGroupAndManager struct function InstanceGroups (line 108) | func InstanceGroups(svc *compute.Service, proj, zone string) (map[string... FILE: cloud/google/gcsutil/storage.go constant gsAccessURL (line 36) | gsAccessURL = "https://storage.googleapis.com" type Object (line 40) | type Object struct method valid (line 45) | func (o *Object) valid() error { method String (line 64) | func (o *Object) String() string { type SizedObject (line 59) | type SizedObject struct method String (line 71) | func (so SizedObject) String() string { function simpleRequest (line 76) | func simpleRequest(method, url_ string) (*http.Request, error) { function GetPartialObject (line 94) | func GetPartialObject(ctx context.Context, obj Object, offset, length in... function EnumerateObjects (line 136) | func EnumerateObjects(ctx context.Context, bucket, after string, limit i... FILE: ctxutil/ctxutil.go function Client (line 37) | func Client(ctx context.Context) *http.Client { FILE: errorutil/highlight.go function HighlightBytePosition (line 32) | func HighlightBytePosition(f io.Reader, pos int64) (line, col int, highl... FILE: fault/fault.go type Injector (line 31) | type Injector struct method ShouldFail (line 47) | func (in *Injector) ShouldFail() bool { method FailErr (line 53) | func (in *Injector) FailErr(err *error) bool { function NewInjector (line 39) | func NewInjector(name string) *Injector { FILE: go4test/cloudlaunch/serve_on_cloud.go function serveHTTP (line 47) | func serveHTTP(w http.ResponseWriter, r *http.Request) { function main (line 57) | func main() { FILE: jsonconfig/eval.go type stringVector (line 36) | type stringVector struct method Push (line 40) | func (v *stringVector) Push(s string) { method Pop (line 44) | func (v *stringVector) Pop() { method Last (line 48) | func (v *stringVector) Last() string { type File (line 53) | type File interface type ConfigParser (line 61) | type ConfigParser struct method open (line 76) | func (c *ConfigParser) open(filename string) (File, error) { method ReadFile (line 88) | func (c *ConfigParser) ReadFile(path string) (Obj, error) { method recursiveReadJSON (line 99) | func (c *ConfigParser) recursiveReadJSON(configPath string) (decodedOb... method evalValue (line 173) | func (c *ConfigParser) evalValue(v interface{}) (interface{}, error) { method CheckTypes (line 199) | func (c *ConfigParser) CheckTypes(m map[string]interface{}) error { method evaluateExpressions (line 205) | func (c *ConfigParser) evaluateExpressions(m map[string]interface{}, s... method expandEnv (line 236) | func (c *ConfigParser) expandEnv(v []interface{}) (interface{}, error) { method expandFile (line 284) | func (c *ConfigParser) expandFile(v []interface{}) (exp interface{}, e... method ConfigFilePath (line 304) | func (c *ConfigParser) ConfigFilePath(configFile string) (path string,... function RegisterFunc (line 150) | func RegisterFunc(name string, fn func(c *ConfigParser, v []interface{})... type expanderFunc (line 160) | type expanderFunc function namedExpander (line 162) | func namedExpander(name string) (fn expanderFunc, ok bool) { FILE: jsonconfig/jsonconfig.go type Obj (line 30) | type Obj method RequiredObject (line 40) | func (jc Obj) RequiredObject(key string) Obj { method OptionalObject (line 44) | func (jc Obj) OptionalObject(key string) Obj { method obj (line 48) | func (jc Obj) obj(key string, optional bool) Obj { method RequiredString (line 66) | func (jc Obj) RequiredString(key string) string { method OptionalString (line 70) | func (jc Obj) OptionalString(key, def string) string { method string (line 74) | func (jc Obj) string(key string, def *string) string { method RequiredStringOrObject (line 92) | func (jc Obj) RequiredStringOrObject(key string) interface{} { method OptionalStringOrObject (line 96) | func (jc Obj) OptionalStringOrObject(key string) interface{} { method stringOrObject (line 100) | func (jc Obj) stringOrObject(key string, required bool) interface{} { method RequiredBool (line 120) | func (jc Obj) RequiredBool(key string) bool { method OptionalBool (line 124) | func (jc Obj) OptionalBool(key string, def bool) bool { method bool (line 128) | func (jc Obj) bool(key string, def *bool) bool { method RequiredInt (line 153) | func (jc Obj) RequiredInt(key string) int { method OptionalInt (line 157) | func (jc Obj) OptionalInt(key string, def int) int { method int (line 161) | func (jc Obj) int(key string, def *int) int { method RequiredInt64 (line 179) | func (jc Obj) RequiredInt64(key string) int64 { method OptionalInt64 (line 183) | func (jc Obj) OptionalInt64(key string, def int64) int64 { method int64 (line 187) | func (jc Obj) int64(key string, def *int64) int64 { method RequiredList (line 205) | func (jc Obj) RequiredList(key string) []string { method OptionalList (line 209) | func (jc Obj) OptionalList(key string) []string { method requiredList (line 213) | func (jc Obj) requiredList(key string, required bool) []string { method noteKnownKey (line 239) | func (jc Obj) noteKnownKey(key string) { method appendError (line 247) | func (jc Obj) appendError(err error) { method UnknownKeys (line 257) | func (jc Obj) UnknownKeys() []string { method Validate (line 279) | func (jc Obj) Validate() error { function ReadFile (line 35) | func ReadFile(configPath string) (Obj, error) { FILE: jsonconfig/jsonconfig_test.go function testIncludes (line 26) | func testIncludes(configFile string, t *testing.T) { function TestIncludesCWD (line 42) | func TestIncludesCWD(t *testing.T) { function TestIncludesIncludeDirs (line 46) | func TestIncludesIncludeDirs(t *testing.T) { function TestIncludeLoop (line 50) | func TestIncludeLoop(t *testing.T) { function TestBoolEnvs (line 60) | func TestBoolEnvs(t *testing.T) { function TestListExpansion (line 96) | func TestListExpansion(t *testing.T) { FILE: legal/legal.go function RegisterLicense (line 24) | func RegisterLicense(text string) { function Licenses (line 30) | func Licenses() []string { FILE: legal/legal_test.go function TestRegisterLicense (line 23) | func TestRegisterLicense(t *testing.T) { FILE: lock/lock.go function Lock (line 47) | func Lock(name string) (io.Closer, error) { function lockPortable (line 70) | func lockPortable(name string) (io.Closer, error) { type lockStatus (line 97) | type lockStatus constant statusInvalid (line 100) | statusInvalid lockStatus = iota constant statusLocked (line 101) | statusLocked constant statusUnlocked (line 102) | statusUnlocked constant statusStale (line 103) | statusStale type pidLockMeta (line 106) | type pidLockMeta struct function portableLockStatus (line 110) | func portableLockStatus(path string) lockStatus { type unlocker (line 145) | type unlocker struct method Close (line 155) | func (u *unlocker) Close() error { method close (line 160) | func (u *unlocker) close() { FILE: lock/lock_plan9.go function init (line 25) | func init() { function lockPlan9 (line 29) | func lockPlan9(name string) (io.Closer, error) { FILE: lock/lock_sigzero.go function init (line 23) | func init() { FILE: lock/lock_test.go function TestLock (line 32) | func TestLock(t *testing.T) { function TestLockPortable (line 36) | func TestLockPortable(t *testing.T) { function TestLockInChild (line 40) | func TestLockInChild(t *testing.T) { function testLock (line 74) | func testLock(t *testing.T, portable bool) { type childLockCmd (line 150) | type childLockCmd struct type childProc (line 155) | type childProc struct method kill (line 160) | func (c *childProc) kill() { method do (line 164) | func (c *childProc) do(op string) error { function newChildProc (line 173) | func newChildProc(t *testing.T, path string, portable bool) *childProc { FILE: lock/lock_unix.go function init (line 29) | func init() { function lockFcntl (line 33) | func lockFcntl(name string) (io.Closer, error) { FILE: lock/lock_windows.go function init (line 28) | func init() { type winUnlocker (line 32) | type winUnlocker struct method Close (line 41) | func (u *winUnlocker) Close() error { method close (line 46) | func (u *winUnlocker) close() { function lockWindows (line 54) | func lockWindows(name string) (io.Closer, error) { function winCreateEphemeral (line 68) | func winCreateEphemeral(name string) (windows.Handle, error) { FILE: media/heif/bmff/bmff.go function NewReader (line 39) | func NewReader(r io.Reader) *Reader { type Reader (line 47) | type Reader struct method ReadBox (line 167) | func (r *Reader) ReadBox() (Box, error) { method ReadAndParseBox (line 228) | func (r *Reader) ReadAndParseBox(typ BoxType) (Box, error) { type BoxType (line 53) | type BoxType method String (line 61) | func (t BoxType) String() string { return string(t[:]) } method EqualString (line 63) | func (t BoxType) EqualString(s string) bool { type parseFunc (line 68) | type parseFunc type Box (line 71) | type Box interface type parserFunc (line 95) | type parserFunc function boxType (line 97) | func boxType(s string) BoxType { type box (line 121) | type box struct method Size (line 129) | func (b *box) Size() int64 { return b.size } method Type (line 130) | func (b *box) Type() BoxType { return b.boxType } method Body (line 132) | func (b *box) Body() io.Reader { method Parse (line 139) | func (b *box) Parse() (Box, error) { type FullBox (line 155) | type FullBox struct function readFullBox (line 243) | func readFullBox(outer *box, br *bufReader) (fb FullBox, err error) { type FileTypeBox (line 257) | type FileTypeBox struct function parseFileTypeBox (line 264) | func parseFileTypeBox(outer *box, br *bufReader) (Box, error) { type MetaBox (line 288) | type MetaBox struct function parseMetaBox (line 293) | func parseMetaBox(outer *box, br *bufReader) (Box, error) { type ItemInfoEntry (line 329) | type ItemInfoEntry struct function parseItemInfoEntry (line 346) | func parseItemInfoEntry(outer *box, br *bufReader) (Box, error) { type ItemInfoBox (line 384) | type ItemInfoBox struct function parseItemInfoBox (line 390) | func parseItemInfoBox(outer *box, br *bufReader) (Box, error) { type bufReader (line 419) | type bufReader struct method parseAppendBoxes (line 302) | func (br *bufReader) parseAppendBoxes(dst *[]Box) error { method ok (line 425) | func (br *bufReader) ok() bool { return br.err == nil } method anyRemain (line 427) | func (br *bufReader) anyRemain() bool { method readUintN (line 435) | func (br *bufReader) readUintN(bits uint8) (uint64, error) { method readUint8 (line 464) | func (br *bufReader) readUint8() (uint8, error) { method readUint16 (line 476) | func (br *bufReader) readUint16() (uint16, error) { method readUint32 (line 490) | func (br *bufReader) readUint32() (uint32, error) { method readString (line 504) | func (br *bufReader) readString() (string, error) { type ItemPropertyContainerBox (line 523) | type ItemPropertyContainerBox struct function parseItemPropertyContainerBox (line 528) | func parseItemPropertyContainerBox(outer *box, br *bufReader) (Box, erro... type ItemPropertiesBox (line 534) | type ItemPropertiesBox struct function parseItemPropertiesBox (line 540) | func parseItemPropertiesBox(outer *box, br *bufReader) (Box, error) { type ItemPropertyAssociation (line 581) | type ItemPropertyAssociation struct type ItemProperty (line 588) | type ItemProperty struct type ItemPropertyAssociationItem (line 594) | type ItemPropertyAssociationItem struct function parseItemPropertyAssociation (line 600) | func parseItemPropertyAssociation(outer *box, br *bufReader) (Box, error) { type ImageSpatialExtentsProperty (line 647) | type ImageSpatialExtentsProperty struct function parseImageSpatialExtentsProperty (line 653) | func parseImageSpatialExtentsProperty(outer *box, br *bufReader) (Box, e... type OffsetLength (line 673) | type OffsetLength struct type ItemLocationBoxEntry (line 678) | type ItemLocationBoxEntry struct type ItemLocationBox (line 688) | type ItemLocationBox struct function parseItemLocationBox (line 697) | func parseItemLocationBox(outer *box, br *bufReader) (Box, error) { type HandlerBox (line 749) | type HandlerBox struct function parseHandlerBox (line 755) | func parseHandlerBox(gen *box, br *bufReader) (Box, error) { type DataInformationBox (line 775) | type DataInformationBox struct function parseDataInformationBox (line 780) | func parseDataInformationBox(gen *box, br *bufReader) (Box, error) { type DataReferenceBox (line 786) | type DataReferenceBox struct function parseDataReferenceBox (line 792) | func parseDataReferenceBox(gen *box, br *bufReader) (Box, error) { type PrimaryItemBox (line 803) | type PrimaryItemBox struct function parsePrimaryItemBox (line 808) | func parsePrimaryItemBox(gen *box, br *bufReader) (Box, error) { type ImageRotation (line 822) | type ImageRotation struct function parseImageRotation (line 827) | func parseImageRotation(gen *box, br *bufReader) (Box, error) { FILE: media/heif/dumpheif/dumpheif.go function main (line 46) | func main() { type exifWalkFunc (line 106) | type exifWalkFunc method Walk (line 108) | func (f exifWalkFunc) Walk(name exif.FieldName, tag *tiff.Tag) error { function dumpBox (line 112) | func dumpBox(box bmff.Box, depth int) { FILE: media/heif/heif.go type File (line 36) | type File struct method EXIF (line 128) | func (f *File) EXIF() ([]byte, error) { method setMetaErr (line 161) | func (f *File) setMetaErr(err error) error { method getMeta (line 168) | func (f *File) getMeta() (*BoxMeta, error) { method PrimaryItem (line 220) | func (f *File) PrimaryItem() (*Item, error) { method ItemByID (line 233) | func (f *File) ItemByID(id uint32) (*Item, error) { type BoxMeta (line 46) | type BoxMeta struct method EXIFItemID (line 56) | func (m *BoxMeta) EXIFItemID() uint32 { type Item (line 69) | type Item struct method SpatialExtents (line 80) | func (it *Item) SpatialExtents() (width, height int, ok bool) { method Rotations (line 91) | func (it *Item) Rotations() int { method VisualDimensions (line 102) | func (it *Item) VisualDimensions() (width, height int, ok bool) { function Open (line 113) | func Open(f io.ReaderAt) *File { FILE: media/heif/heif_test.go function TestAll (line 13) | func TestAll(t *testing.T) { function TestRotations (line 82) | func TestRotations(t *testing.T) { type walkFunc (line 109) | type walkFunc method Walk (line 111) | func (f walkFunc) Walk(name exif.FieldName, tag *tiff.Tag) error { FILE: must/must.go function Close (line 24) | func Close(c io.Closer) { function Do (line 32) | func Do(fn func() error) { FILE: net/throttle/throttle.go constant unitSize (line 29) | unitSize = 1400 type Rate (line 31) | type Rate struct method byteTime (line 37) | func (r Rate) byteTime(n int) time.Duration { type Listener (line 44) | type Listener struct method Accept (line 50) | func (ln *Listener) Accept() (net.Conn, error) { type nErr (line 61) | type nErr struct type writeReq (line 66) | type writeReq struct type conn (line 72) | type conn struct method start (line 82) | func (c *conn) start() { method writeLoop (line 87) | func (c *conn) writeLoop() { method Close (line 106) | func (c *conn) Close() error { method Write (line 115) | func (c *conn) Write(p []byte) (n int, err error) { method Read (line 129) | func (c *conn) Read(p []byte) (n int, err error) { FILE: oauthutil/oauth.go constant TitleBarRedirectURL (line 33) | TitleBarRedirectURL = "urn:ietf:wg:oauth:2.0:oob" type TokenSource (line 42) | type TokenSource struct method Token (line 81) | func (src TokenSource) Token() (*oauth2.Token, error) { function cachedToken (line 59) | func cachedToken(cacheFile string) (*oauth2.Token, error) { function NewRefreshTokenSource (line 115) | func NewRefreshTokenSource(config *oauth2.Config, refreshToken string) o... FILE: osutil/osutil.go function Executable (line 26) | func Executable() (string, error) { FILE: readerutil/bufreaderat.go function NewBufferingReaderAt (line 23) | func NewBufferingReaderAt(r io.Reader) io.ReaderAt { type bufReaderAt (line 27) | type bufReaderAt struct method ReadAt (line 32) | func (br *bufReaderAt) ReadAt(p []byte, off int64) (n int, err error) { FILE: readerutil/bufreaderat_test.go type trackingReader (line 21) | type trackingReader struct method Read (line 27) | func (t *trackingReader) Read(p []byte) (n int, err error) { function TestBufferingReaderAt (line 40) | func TestBufferingReaderAt(t *testing.T) { FILE: readerutil/countingreader.go type CountingReader (line 23) | type CountingReader struct method Read (line 28) | func (cr CountingReader) Read(p []byte) (n int, err error) { FILE: readerutil/fakeseeker.go type fakeSeeker (line 28) | type fakeSeeker struct method Seek (line 43) | func (fs *fakeSeeker) Seek(offset int64, whence int) (int64, error) { method Read (line 62) | func (fs *fakeSeeker) Read(p []byte) (n int, err error) { function NewFakeSeeker (line 39) | func NewFakeSeeker(r io.Reader, size int64) io.ReadSeeker { FILE: readerutil/fakeseeker_test.go function TestFakeSeeker (line 25) | func TestFakeSeeker(t *testing.T) { FILE: readerutil/multireaderat.go function NewMultiReaderAt (line 26) | func NewMultiReaderAt(parts ...SizeReaderAt) SizeReaderAt { type offsetAndSource (line 39) | type offsetAndSource struct type multiRA (line 44) | type multiRA struct method Size (line 49) | func (m *multiRA) Size() int64 { return m.size } method ReadAt (line 51) | func (m *multiRA) ReadAt(p []byte, off int64) (n int, err error) { function ZeroSizeReaderAt (line 95) | func ZeroSizeReaderAt(size int64) SizeReaderAt { type allZeros (line 99) | type allZeros struct method ReadAt (line 101) | func (a allZeros) ReadAt(p []byte, off int64) (n int, err error) { method Size (line 108) | func (a allZeros) Size() int64 { return a.n } FILE: readerutil/multireaderat_test.go function TestMultiReaderAt (line 26) | func TestMultiReaderAt(t *testing.T) { FILE: readerutil/readersize.go function Size (line 29) | func Size(r io.Reader) (size int64, ok bool) { FILE: readerutil/readersize_test.go constant text (line 27) | text = "HelloWorld" type testSrc (line 29) | type testSrc struct method run (line 35) | func (tsrc *testSrc) run(t *testing.T) { function TestBytesBuffer (line 45) | func TestBytesBuffer(t *testing.T) { function TestSeeker (line 51) | func TestSeeker(t *testing.T) { FILE: readerutil/readerutil.go type SizeReaderAt (line 28) | type SizeReaderAt interface type ReadSeekCloser (line 34) | type ReadSeekCloser interface type ReaderAtCloser (line 40) | type ReaderAtCloser interface type varStatReader (line 48) | type varStatReader struct method Read (line 59) | func (v *varStatReader) Read(p []byte) (int, error) { function NewStatsReader (line 55) | func NewStatsReader(v *expvar.Int, r io.Reader) io.Reader { type varStatReadSeeker (line 65) | type varStatReadSeeker struct method Read (line 76) | func (v *varStatReadSeeker) Read(p []byte) (int, error) { method Seek (line 82) | func (v *varStatReadSeeker) Seek(offset int64, whence int) (int64, err... function NewStatsReadSeeker (line 72) | func NewStatsReadSeeker(v *expvar.Int, rs io.ReadSeeker) io.ReadSeeker { FILE: readerutil/readerutil_test.go function ExampleNewStatsReader (line 27) | func ExampleNewStatsReader() { FILE: readerutil/singlereader/opener.go type openFile (line 36) | type openFile struct type openFileHandle (line 42) | type openFileHandle struct method Close (line 47) | func (f *openFileHandle) Close() error { function Open (line 71) | func Open(path string) (readerutil.ReaderAtCloser, error) { FILE: readerutil/singlereader/opener_test.go function TestOpenSingle (line 28) | func TestOpenSingle(t *testing.T) { FILE: reflectutil/swapper.go function Swapper (line 20) | func Swapper(slice any) func(i, j int) { FILE: rollsum/rollsum.go constant windowSize (line 28) | windowSize = 64 constant charOffset (line 29) | charOffset = 31 constant blobBits (line 31) | blobBits = 13 constant blobSize (line 32) | blobSize = 1 << blobBits type RollSum (line 34) | type RollSum struct method add (line 47) | func (rs *RollSum) add(drop, add uint32) { method Roll (line 54) | func (rs *RollSum) Roll(ch byte) { method OnSplit (line 63) | func (rs *RollSum) OnSplit() bool { method OnSplitWithBits (line 69) | func (rs *RollSum) OnSplitWithBits(n uint32) bool { method Bits (line 74) | func (rs *RollSum) Bits() int { method Digest (line 79) | func (rs *RollSum) Digest() uint32 { function New (line 40) | func New() *RollSum { FILE: rollsum/rollsum_test.go function TestSum (line 24) | func TestSum(t *testing.T) { function BenchmarkRollsum (line 75) | func BenchmarkRollsum(b *testing.B) { FILE: sort/example_interface_test.go type Person (line 13) | type Person struct method String (line 18) | func (p Person) String() string { type ByAge (line 24) | type ByAge method Len (line 26) | func (a ByAge) Len() int { return len(a) } method Swap (line 27) | func (a ByAge) Swap(i, j int) { a[i], a[j] = a[j], a[i] } method Less (line 28) | func (a ByAge) Less(i, j int) bool { return a[i].Age < a[j].Age } function ExampleSort (line 30) | func ExampleSort() { FILE: sort/example_keys_test.go type earthMass (line 13) | type earthMass type au (line 14) | type au type Planet (line 17) | type Planet struct type By (line 24) | type By method Sort (line 27) | func (by By) Sort(planets []Planet) { type planetSorter (line 36) | type planetSorter struct method Len (line 42) | func (s *planetSorter) Len() int { method Swap (line 47) | func (s *planetSorter) Swap(i, j int) { method Less (line 52) | func (s *planetSorter) Less(i, j int) bool { function Example_sortKeys (line 64) | func Example_sortKeys() { FILE: sort/example_multi_test.go type Change (line 13) | type Change struct type lessFunc (line 19) | type lessFunc type multiSorter (line 22) | type multiSorter struct method Sort (line 28) | func (ms *multiSorter) Sort(changes []Change) { method Len (line 42) | func (ms *multiSorter) Len() int { method Swap (line 47) | func (ms *multiSorter) Swap(i, j int) { method Less (line 56) | func (ms *multiSorter) Less(i, j int) bool { function OrderedBy (line 35) | func OrderedBy(less ...lessFunc) *multiSorter { function Example_sortMultiKeys (line 92) | func Example_sortMultiKeys() { FILE: sort/example_slice_test.go function Example (line 13) | func Example() { function ExampleSlice (line 30) | func ExampleSlice() { FILE: sort/example_test.go function ExampleInts (line 12) | func ExampleInts() { function ExampleReverse (line 19) | func ExampleReverse() { FILE: sort/example_wrapper_test.go type Grams (line 12) | type Grams method String (line 14) | func (g Grams) String() string { return fmt.Sprintf("%dg", int(g)) } type Organ (line 16) | type Organ struct type Organs (line 21) | type Organs method Len (line 23) | func (s Organs) Len() int { return len(s) } method Swap (line 24) | func (s Organs) Swap(i, j int) { s[i], s[j] = s[j], s[i] } type ByName (line 28) | type ByName struct method Less (line 30) | func (s ByName) Less(i, j int) bool { return s.Organs[i].Name < s.Orga... type ByWeight (line 34) | type ByWeight struct method Less (line 36) | func (s ByWeight) Less(i, j int) bool { return s.Organs[i].Weight < s.... function Example_sortWrapper (line 38) | func Example_sortWrapper() { function printOrgans (line 73) | func printOrgans(s []*Organ) { FILE: sort/export_test.go function Heapsort (line 7) | func Heapsort(data Interface) { FILE: sort/genzfunc.go function main (line 30) | func main() { type visitFunc (line 100) | type visitFunc method Visit (line 102) | func (f visitFunc) Visit(n ast.Node) ast.Visitor { return f(n) } function rewriteCalls (line 104) | func rewriteCalls(n ast.Node) ast.Visitor { function rewriteCall (line 112) | func rewriteCall(ce *ast.CallExpr) { FILE: sort/search.go function Search (line 59) | func Search(n int, f func(int) bool) int { function SearchInts (line 83) | func SearchInts(a []int, x int) int { function SearchFloat64s (line 92) | func SearchFloat64s(a []float64, x float64) int { function SearchStrings (line 101) | func SearchStrings(a []string, x string) int { method Search (line 106) | func (p IntSlice) Search(x int) int { return SearchInts(p, x) } method Search (line 109) | func (p Float64Slice) Search(x float64) int { return SearchFloat64s(p, x) } method Search (line 112) | func (p StringSlice) Search(x string) int { return SearchStrings(p, x) } FILE: sort/search_test.go function f (line 13) | func f(a []int, x int) func(int) bool { function TestSearch (line 51) | func TestSearch(t *testing.T) { function log2 (line 63) | func log2(x int) int { function TestSearchEfficiency (line 73) | func TestSearchEfficiency(t *testing.T) { function TestSearchWrappers (line 113) | func TestSearchWrappers(t *testing.T) { function runSearchWrappers (line 121) | func runSearchWrappers() { function TestSearchWrappersDontAlloc (line 130) | func TestSearchWrappersDontAlloc(t *testing.T) { function BenchmarkSearchWrappers (line 143) | func BenchmarkSearchWrappers(b *testing.B) { function TestSearchExhaustive (line 152) | func TestSearchExhaustive(t *testing.T) { FILE: sort/sort.go type Interface (line 33) | type Interface interface type lessSwap (line 46) | type lessSwap struct function MakeInterface (line 53) | func MakeInterface(length int, swap func(i, j int), less func(i, j int) ... function SliceSorter (line 60) | func SliceSorter(slice interface{}, less func(i, j int) bool) Interface { function Slice (line 67) | func Slice(slice interface{}, less func(i, j int) bool) { type funcs (line 74) | type funcs struct method Len (line 79) | func (f *funcs) Len() int { return f.length } method Swap (line 80) | func (f *funcs) Swap(i, j int) { f.lessSwap.Swap(i, j) } method Less (line 81) | func (f *funcs) Less(i, j int) bool { return f.lessSwap.Less(i, j) } function insertionSort (line 84) | func insertionSort(data Interface, a, b int) { function siftDown (line 94) | func siftDown(data Interface, lo, hi, first int) { function heapSort (line 112) | func heapSort(data Interface, a, b int) { function medianOfThree (line 133) | func medianOfThree(data Interface, m1, m0, m2 int) { function swapRange (line 149) | func swapRange(data Interface, a, b, n int) { function doPivot (line 155) | func doPivot(data Interface, lo, hi int) (midlo, midhi int) { function quickSort (line 242) | func quickSort(data Interface, a, b, maxDepth int) { function Sort (line 278) | func Sort(data Interface) { function With (line 290) | func With(length int, swap func(i, j int), less func(i, j int) bool) { function maxDepth (line 296) | func maxDepth(n int) int { type reverse (line 304) | type reverse struct method Less (line 311) | func (r reverse) Less(i, j int) bool { function Reverse (line 316) | func Reverse(data Interface) Interface { function IsSorted (line 321) | func IsSorted(data Interface) bool { type IntSlice (line 334) | type IntSlice method Len (line 336) | func (p IntSlice) Len() int { return len(p) } method Less (line 337) | func (p IntSlice) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 338) | func (p IntSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } method Sort (line 341) | func (p IntSlice) Sort() { Sort(p) } type Float64Slice (line 344) | type Float64Slice method Len (line 346) | func (p Float64Slice) Len() int { return len(p) } method Less (line 347) | func (p Float64Slice) Less(i, j int) bool { return p[i] < p[j] || isNa... method Swap (line 348) | func (p Float64Slice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } method Sort (line 356) | func (p Float64Slice) Sort() { Sort(p) } function isNaN (line 351) | func isNaN(f float64) bool { type StringSlice (line 359) | type StringSlice method Len (line 361) | func (p StringSlice) Len() int { return len(p) } method Less (line 362) | func (p StringSlice) Less(i, j int) bool { return p[i] < p[j] } method Swap (line 363) | func (p StringSlice) Swap(i, j int) { p[i], p[j] = p[j], p[i] } method Sort (line 366) | func (p StringSlice) Sort() { Sort(p) } function Ints (line 371) | func Ints(a []int) { Sort(IntSlice(a)) } function Float64s (line 374) | func Float64s(a []float64) { Sort(Float64Slice(a)) } function Strings (line 377) | func Strings(a []string) { Sort(StringSlice(a)) } function IntsAreSorted (line 380) | func IntsAreSorted(a []int) bool { return IsSorted(IntSlice(a)) } function Float64sAreSorted (line 383) | func Float64sAreSorted(a []float64) bool { return IsSorted(Float64Slice(... function StringsAreSorted (line 386) | func StringsAreSorted(a []string) bool { return IsSorted(StringSlice(a)) } function Stable (line 418) | func Stable(data Interface) { function stable (line 426) | func stable(data Interface, n int) { function symMerge (line 469) | func symMerge(data Interface, a, m, b int) { function rotate (line 555) | func rotate(data Interface, a, m, b int) { FILE: sort/sort_test.go function TestSlice (line 23) | func TestSlice(t *testing.T) { function TestSortIntSlice (line 32) | func TestSortIntSlice(t *testing.T) { function TestSortFloat64Slice (line 42) | func TestSortFloat64Slice(t *testing.T) { function TestSortStringSlice (line 52) | func TestSortStringSlice(t *testing.T) { function TestInts (line 62) | func TestInts(t *testing.T) { function TestFloat64s (line 71) | func TestFloat64s(t *testing.T) { function TestStrings (line 80) | func TestStrings(t *testing.T) { function TestStringsWithSwapper (line 89) | func TestStringsWithSwapper(t *testing.T) { function TestSortLarge_Random (line 100) | func TestSortLarge_Random(t *testing.T) { function TestReverseSortIntSlice (line 118) | func TestReverseSortIntSlice(t *testing.T) { type nonDeterministicTestingData (line 135) | type nonDeterministicTestingData struct method Len (line 139) | func (t *nonDeterministicTestingData) Len() int { method Less (line 142) | func (t *nonDeterministicTestingData) Less(i, j int) bool { method Swap (line 148) | func (t *nonDeterministicTestingData) Swap(i, j int) { function TestNonDeterministicComparison (line 154) | func TestNonDeterministicComparison(t *testing.T) { function BenchmarkSortString1K (line 172) | func BenchmarkSortString1K(b *testing.B) { function BenchmarkSortString1K_With (line 188) | func BenchmarkSortString1K_With(b *testing.B) { function BenchmarkSortString1K_WithSwapper (line 208) | func BenchmarkSortString1K_WithSwapper(b *testing.B) { function BenchmarkStableString1K (line 226) | func BenchmarkStableString1K(b *testing.B) { function BenchmarkSortInt1K (line 242) | func BenchmarkSortInt1K(b *testing.B) { function BenchmarkStableInt1K (line 255) | func BenchmarkStableInt1K(b *testing.B) { function BenchmarkStableInt1K_With (line 270) | func BenchmarkStableInt1K_With(b *testing.B) { function BenchmarkStableInt1K_WithSwapper (line 289) | func BenchmarkStableInt1K_WithSwapper(b *testing.B) { function BenchmarkSortInt64K (line 306) | func BenchmarkSortInt64K(b *testing.B) { function BenchmarkStableInt64K (line 319) | func BenchmarkStableInt64K(b *testing.B) { constant _Sawtooth (line 333) | _Sawtooth = iota constant _Rand (line 334) | _Rand constant _Stagger (line 335) | _Stagger constant _Plateau (line 336) | _Plateau constant _Shuffle (line 337) | _Shuffle constant _NDist (line 338) | _NDist constant _Copy (line 342) | _Copy = iota constant _Reverse (line 343) | _Reverse constant _ReverseFirstHalf (line 344) | _ReverseFirstHalf constant _ReverseSecondHalf (line 345) | _ReverseSecondHalf constant _Sorted (line 346) | _Sorted constant _Dither (line 347) | _Dither constant _NMode (line 348) | _NMode type testingData (line 351) | type testingData struct method Len (line 359) | func (d *testingData) Len() int { return len(d.data) } method Less (line 360) | func (d *testingData) Less(i, j int) bool { method Swap (line 364) | func (d *testingData) Swap(i, j int) { function min (line 373) | func min(a, b int) int { function lg (line 380) | func lg(n int) int { function testBentleyMcIlroy (line 388) | func testBentleyMcIlroy(t *testing.T, sort func(Interface), maxswap func... function TestSortBM (line 486) | func TestSortBM(t *testing.T) { function TestHeapsortBM (line 490) | func TestHeapsortBM(t *testing.T) { function TestStableBM (line 494) | func TestStableBM(t *testing.T) { type adversaryTestingData (line 500) | type adversaryTestingData struct method Len (line 506) | func (d *adversaryTestingData) Len() int { return len(d.data) } method Less (line 508) | func (d *adversaryTestingData) Less(i, j int) bool { method Swap (line 531) | func (d *adversaryTestingData) Swap(i, j int) { function TestAdversary (line 535) | func TestAdversary(t *testing.T) { function TestStableInts (line 546) | func TestStableInts(t *testing.T) { type intPairs (line 554) | type intPairs method Len (line 559) | func (d intPairs) Len() int { return len(d) } method Less (line 560) | func (d intPairs) Less(i, j int) bool { return d[i].a < d[j].a } method Swap (line 561) | func (d intPairs) Swap(i, j int) { d[i], d[j] = d[j], d[i] } method initB (line 564) | func (d intPairs) initB() { method inOrder (line 571) | func (d intPairs) inOrder() bool { function TestStability (line 587) | func TestStability(t *testing.T) { function countOps (line 636) | func countOps(t *testing.T, algo func(Interface), name string) { function TestCountStableOps (line 659) | func TestCountStableOps(t *testing.T) { countOps(t, Stable, "Stable") } function TestCountSortOps (line 660) | func TestCountSortOps(t *testing.T) { countOps(t, Sort, "Sort ") } function bench (line 662) | func bench(b *testing.B, size int, algo func(Interface), name string) { function BenchmarkSort1e2 (line 690) | func BenchmarkSort1e2(b *testing.B) { bench(b, 1e2, Sort, "Sort") } function BenchmarkStable1e2 (line 691) | func BenchmarkStable1e2(b *testing.B) { bench(b, 1e2, Stable, "Stable") } function BenchmarkSort1e4 (line 692) | func BenchmarkSort1e4(b *testing.B) { bench(b, 1e4, Sort, "Sort") } function BenchmarkStable1e4 (line 693) | func BenchmarkStable1e4(b *testing.B) { bench(b, 1e4, Stable, "Stable") } function BenchmarkSort1e6 (line 694) | func BenchmarkSort1e6(b *testing.B) { bench(b, 1e6, Sort, "Sort") } function BenchmarkStable1e6 (line 695) | func BenchmarkStable1e6(b *testing.B) { bench(b, 1e6, Stable, "Stable") } FILE: sort/zfuncversion.go function insertionSort_func (line 10) | func insertionSort_func(data lessSwap, a, b int) { function siftDown_func (line 19) | func siftDown_func(data lessSwap, lo, hi, first int) { function heapSort_func (line 38) | func heapSort_func(data lessSwap, a, b int) { function medianOfThree_func (line 52) | func medianOfThree_func(data lessSwap, m1, m0, m2 int) { function swapRange_func (line 65) | func swapRange_func(data lessSwap, a, b, n int) { function doPivot_func (line 72) | func doPivot_func(data lessSwap, lo, hi int) (midlo, midhi int) { function quickSort_func (line 136) | func quickSort_func(data lessSwap, a, b, maxDepth int) { function stable_func (line 163) | func stable_func(data lessSwap, n int) { function symMerge_func (line 187) | func symMerge_func(data lessSwap, a, m, b int) { function rotate_func (line 252) | func rotate_func(data lessSwap, a, m, b int) { FILE: strutil/intern.go function RegisterCommonString (line 24) | func RegisterCommonString(s ...string) { function StringFromBytes (line 32) | func StringFromBytes(v []byte) string { FILE: strutil/strconv.go function ParseUintBytes (line 25) | func ParseUintBytes(s []byte, base int, bitSize int) (n uint64, err erro... function cutoff64 (line 112) | func cutoff64(base int) uint64 { FILE: strutil/strutil.go function genSplit (line 29) | func genSplit(dst []string, s, sep string, sepSave, n int) []string { function AppendSplitN (line 60) | func AppendSplitN(dst []string, s, sep string, n int) []string { function equalFoldRune (line 67) | func equalFoldRune(sr, tr rune) bool { function HasPrefixFold (line 98) | func HasPrefixFold(s, prefix string) bool { function HasSuffixFold (line 121) | func HasSuffixFold(s, suffix string) bool { function ContainsFold (line 148) | func ContainsFold(s, substr string) bool { function IsPlausibleJSON (line 169) | func IsPlausibleJSON(s string) bool { function isASCIIWhite (line 173) | func isASCIIWhite(b byte) bool { return b == ' ' || b == '\n' || b == '\... function startsWithOpenBrace (line 175) | func startsWithOpenBrace(s string) bool { function endsWithCloseBrace (line 189) | func endsWithCloseBrace(s string) bool { FILE: strutil/strutil_test.go function TestAppendSplitN (line 25) | func TestAppendSplitN(t *testing.T) { function TestStringFromBytes (line 52) | func TestStringFromBytes(t *testing.T) { function TestHasPrefixFold (line 61) | func TestHasPrefixFold(t *testing.T) { function TestHasSuffixFold (line 91) | func TestHasSuffixFold(t *testing.T) { function TestContainsFold (line 120) | func TestContainsFold(t *testing.T) { function TestIsPlausibleJSON (line 174) | func TestIsPlausibleJSON(t *testing.T) { function BenchmarkHasSuffixFoldToLower (line 198) | func BenchmarkHasSuffixFoldToLower(tb *testing.B) { function BenchmarkHasSuffixFold (line 206) | func BenchmarkHasSuffixFold(tb *testing.B) { function BenchmarkHasPrefixFoldToLower (line 215) | func BenchmarkHasPrefixFoldToLower(tb *testing.B) { function BenchmarkHasPrefixFold (line 223) | func BenchmarkHasPrefixFold(tb *testing.B) { FILE: syncutil/gate.go type Gate (line 20) | type Gate struct method Start (line 30) | func (g *Gate) Start() { method Done (line 35) | func (g *Gate) Done() { function NewGate (line 25) | func NewGate(max int) *Gate { FILE: syncutil/group.go type Group (line 23) | type Group struct method Go (line 31) | func (g *Group) Go(fn func() error) { method Wait (line 45) | func (g *Group) Wait() { method Err (line 51) | func (g *Group) Err() error { method Errs (line 61) | func (g *Group) Errs() []error { FILE: syncutil/once.go type Once (line 28) | type Once struct method Do (line 45) | func (o *Once) Do(f func() error) error { FILE: syncutil/once_test.go function TestOnce (line 8) | func TestOnce(t *testing.T) { function TestOnceErroring (line 33) | func TestOnceErroring(t *testing.T) { FILE: syncutil/sem.go type debugT (line 9) | type debugT method Printf (line 13) | func (d debugT) Printf(format string, args ...interface{}) { type Sem (line 21) | type Sem struct method Acquire (line 39) | func (s *Sem) Acquire(n int64) error { method Release (line 58) | func (s *Sem) Release(n int64) { function NewSem (line 27) | func NewSem(max int64) *Sem { FILE: syncutil/sem_test.go function TestSem (line 9) | func TestSem(t *testing.T) { function TestSemErr (line 28) | func TestSemErr(t *testing.T) { FILE: syncutil/singleflight/singleflight.go type call (line 24) | type call struct type Group (line 32) | type Group struct method Do (line 41) | func (g *Group) Do(key string, fn func() (interface{}, error)) (interf... FILE: syncutil/singleflight/singleflight_test.go function TestDo (line 28) | func TestDo(t *testing.T) { function TestDoErr (line 41) | func TestDoErr(t *testing.T) { function TestDoDupSuppress (line 55) | func TestDoDupSuppress(t *testing.T) { FILE: syncutil/syncdebug/syncdebug.go type RWMutexTracker (line 35) | type RWMutexTracker struct method startLogger (line 96) | func (m *RWMutexTracker) startLogger() { method Lock (line 117) | func (m *RWMutexTracker) Lock() { method Unlock (line 133) | func (m *RWMutexTracker) Unlock() { method RLock (line 142) | func (m *RWMutexTracker) RLock() { method RUnlock (line 180) | func (m *RWMutexTracker) RUnlock() { method Holder (line 194) | func (m *RWMutexTracker) Holder() string { constant stackBufSize (line 51) | stackBufSize = 16 << 20 function getBuf (line 55) | func getBuf() []byte { function putBuf (line 64) | func putBuf(b []byte) { function GoroutineID (line 78) | func GoroutineID() int64 { function stack (line 175) | func stack() []byte { FILE: syncutil/syncdebug/syncdebug_test.go function TestGoroutineID (line 21) | func TestGoroutineID(t *testing.T) { FILE: testing/functest/functest.go type Func (line 84) | type Func struct method Case (line 160) | func (f *Func) Case(name string) *Case { method In (line 166) | func (f *Func) In(args ...interface{}) *Case { method Test (line 208) | func (f *Func) Test(t testing.TB, cases ...*Case) { method checkCall (line 214) | func (f *Func) checkCall(in []reflect.Value) (out []reflect.Value, did... method testCase (line 224) | func (f *Func) testCase(t testing.TB, c *Case) { function New (line 98) | func New(f interface{}) *Func { type Result (line 128) | type Result struct type Case (line 151) | type Case struct method In (line 171) | func (c *Case) In(args ...interface{}) *Case { method Want (line 179) | func (c *Case) Want(result ...interface{}) *Case { method Check (line 201) | func (c *Case) Check(checker func(Result) error) *Case { method errorf (line 298) | func (c *Case) errorf(t testing.TB, format string, args ...interface{}) { function formatRes (line 277) | func formatRes(res []interface{}) string { function formatValues (line 289) | func formatValues(buf *bytes.Buffer, vals []interface{}) { FILE: testing/functest/functest_test.go type trec (line 10) | type trec struct method Errorf (line 15) | func (t *trec) Errorf(format string, args ...interface{}) { method Logf (line 21) | func (t *trec) Logf(format string, args ...interface{}) { method String (line 27) | func (t *trec) String() string { return t.buf.String() } function add (line 29) | func add(a, b int) int { return a + b } function TestBasic (line 31) | func TestBasic(t *testing.T) { function TestBasic_Strings (line 47) | func TestBasic_Strings(t *testing.T) { function TestVariadic (line 63) | func TestVariadic(t *testing.T) { function condPanic (line 92) | func condPanic(doPanic bool, panicValue interface{}) { function TestPanic (line 98) | func TestPanic(t *testing.T) { function TestName_AutoFunc (line 121) | func TestName_AutoFunc(t *testing.T) { type SomeType (line 125) | type SomeType struct method SomeMethod (line 127) | func (t *SomeType) SomeMethod(int) int { return 123 } function TestName_AutoMethod (line 129) | func TestName_AutoMethod(t *testing.T) { function testName (line 133) | func testName(t *testing.T, f *Func, want string) { FILE: types/types.go type Time3339 (line 42) | type Time3339 method String (line 49) | func (t Time3339) String() string { method MarshalJSON (line 53) | func (t Time3339) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 60) | func (t *Time3339) UnmarshalJSON(b []byte) error { method Time (line 106) | func (t Time3339) Time() time.Time { method IsAnyZero (line 111) | func (t *Time3339) IsAnyZero() bool { function ParseTime3339OrZero (line 87) | func ParseTime3339OrZero(v string) Time3339 { function ParseTime3339OrNil (line 95) | func ParseTime3339OrNil(v string) *Time3339 { type ByTime (line 116) | type ByTime method Len (line 118) | func (s ByTime) Len() int { return len(s) } method Less (line 119) | func (s ByTime) Less(i, j int) bool { return s[i].Before(s[j]) } method Swap (line 120) | func (s ByTime) Swap(i, j int) { s[i], s[j] = s[j], s[i] } function NewOnceCloser (line 124) | func NewOnceCloser(c io.Closer) io.Closer { type onceCloser (line 128) | type onceCloser struct method Close (line 133) | func (c *onceCloser) Close() error { type CloseFunc (line 145) | type CloseFunc method Close (line 147) | func (fn CloseFunc) Close() error { return fn() } FILE: types/types_test.go function TestTime3339 (line 26) | func TestTime3339(t *testing.T) { function TestTime3339_Marshal (line 51) | func TestTime3339_Marshal(t *testing.T) { function TestTime3339_empty (line 71) | func TestTime3339_empty(t *testing.T) { FILE: wkfs/gcs/gcs.go constant maxSize (line 48) | maxSize = 1 << 20 function init (line 50) | func init() { type gcsFS (line 71) | type gcsFS struct method parseName (line 83) | func (fs *gcsFS) parseName(name string) (bucket, fileName string, err ... method Open (line 97) | func (fs *gcsFS) Open(name string) (wkfs.File, error) { method Stat (line 127) | func (fs *gcsFS) Stat(name string) (os.FileInfo, error) { return fs.Ls... method Lstat (line 128) | func (fs *gcsFS) Lstat(name string) (os.FileInfo, error) { method MkdirAll (line 146) | func (fs *gcsFS) MkdirAll(path string, perm os.FileMode) error { retur... method OpenFile (line 148) | func (fs *gcsFS) OpenFile(name string, flag int, perm os.FileMode) (wk... method Remove (line 168) | func (fs *gcsFS) Remove(name string) error { function registerBrokenFS (line 77) | func registerBrokenFS(err error) { type statInfo (line 176) | type statInfo struct method IsDir (line 183) | func (si *statInfo) IsDir() bool { return si.isDir } method ModTime (line 184) | func (si *statInfo) ModTime() time.Time { return si.modtime } method Mode (line 185) | func (si *statInfo) Mode() os.FileMode { return 0644 } method Name (line 186) | func (si *statInfo) Name() string { return path.Base(si.name) } method Size (line 187) | func (si *statInfo) Size() int64 { return si.size } method Sys (line 188) | func (si *statInfo) Sys() interface{} { return nil } type file (line 190) | type file struct method Close (line 195) | func (*file) Close() error { return nil } method Name (line 196) | func (f *file) Name() string { return path.Base(f.name) } method Stat (line 197) | func (f *file) Stat() (os.FileInfo, error) { FILE: wkfs/gcs/gcs_test.go function TestWriteRead (line 35) | func TestWriteRead(t *testing.T) { FILE: wkfs/wkfs.go type File (line 37) | type File interface type FileWriter (line 46) | type FileWriter interface function Open (line 51) | func Open(name string) (File, error) { return fs(name).Ope... function Stat (line 52) | func Stat(name string) (os.FileInfo, error) { return fs(name).Sta... function Lstat (line 53) | func Lstat(name string) (os.FileInfo, error) { return fs(name).Lst... function MkdirAll (line 54) | func MkdirAll(path string, perm os.FileMode) error { return fs(path).Mkd... function OpenFile (line 55) | func OpenFile(name string, flag int, perm os.FileMode) (FileWriter, erro... function Remove (line 58) | func Remove(name string) error { return fs(name).Remove(name) } function Create (line 59) | func Create(name string) (FileWriter, error) { function fs (line 65) | func fs(name string) FileSystem { type osFS (line 74) | type osFS struct method Open (line 76) | func (osFS) Open(name string) (File, error) { return os.... method Stat (line 77) | func (osFS) Stat(name string) (os.FileInfo, error) { return os.... method Lstat (line 78) | func (osFS) Lstat(name string) (os.FileInfo, error) { return os.... method MkdirAll (line 79) | func (osFS) MkdirAll(path string, perm os.FileMode) error { return os.... method OpenFile (line 80) | func (osFS) OpenFile(name string, flag int, perm os.FileMode) (FileWri... method Remove (line 83) | func (osFS) Remove(name string) error { return os.Remove(name) } type FileSystem (line 85) | type FileSystem interface function RegisterFS (line 100) | func RegisterFS(prefix string, fs FileSystem) { function WriteFile (line 113) | func WriteFile(filename string, data []byte, perm os.FileMode) error { function ReadFile (line 128) | func ReadFile(filename string) ([]byte, error) { FILE: writerutil/writerutil.go type PrefixSuffixSaver (line 29) | type PrefixSuffixSaver struct method Write (line 43) | func (w *PrefixSuffixSaver) Write(p []byte) (n int, err error) { method fill (line 69) | func (w *PrefixSuffixSaver) fill(dst *[]byte, p []byte) (pRemain []byt... method Bytes (line 82) | func (w *PrefixSuffixSaver) Bytes() []byte { function minInt (line 100) | func minInt(a, b int) int { FILE: writerutil/writerutil_test.go function TestPrefixSuffixSaver (line 24) | func TestPrefixSuffixSaver(t *testing.T) { FILE: xdgdir/example_test.go function Example (line 26) | func Example() { FILE: xdgdir/xdgdir.go function init (line 41) | func init() { type Dir (line 67) | type Dir struct method String (line 92) | func (d Dir) String() string { method Path (line 102) | func (d Dir) Path() string { method path (line 123) | func (d Dir) path() string { method SearchPaths (line 143) | func (d Dir) SearchPaths() []string { method Open (line 174) | func (d Dir) Open(name string) (*os.File, error) { method Create (line 204) | func (d Dir) Create(name string) (*os.File, error) { function isValidPath (line 219) | func isValidPath(path string) bool { FILE: xdgdir/xdgdir_test.go function TestDir_Path (line 26) | func TestDir_Path(t *testing.T) { function TestDir_SearchPaths (line 153) | func TestDir_SearchPaths(t *testing.T) { function TestDir_Open (line 240) | func TestDir_Open(t *testing.T) { function TestDir_Create (line 341) | func TestDir_Create(t *testing.T) { function stringsEqual (line 415) | func stringsEqual(a, b []string) bool { type tempDir (line 427) | type tempDir struct method newFile (line 443) | func (td *tempDir) newFile(name string, data string) string { method mkdir (line 464) | func (td *tempDir) mkdir(name string, perm os.FileMode) string { method cleanup (line 473) | func (td *tempDir) cleanup() { function newTempDir (line 432) | func newTempDir(t *testing.T) *tempDir { type permCheck (line 480) | type permCheck struct type env (line 485) | type env method set (line 487) | func (e env) set() { FILE: ziputil/ziputil.go constant methodStore (line 44) | methodStore uint16 = 0 constant methodDeflate (line 45) | methodDeflate uint16 = 8 constant fileHeaderSignature (line 49) | fileHeaderSignature = 0x04034b50 constant directoryHeaderSignature (line 50) | directoryHeaderSignature = 0x02014b50 constant directoryEndSignature (line 51) | directoryEndSignature = 0x06054b50 constant directory64LocSignature (line 52) | directory64LocSignature = 0x07064b50 constant directory64EndSignature (line 53) | directory64EndSignature = 0x06064b50 constant dataDescriptorSignature (line 54) | dataDescriptorSignature = 0x08074b50 constant fileHeaderLen (line 55) | fileHeaderLen = 30 constant directoryHeaderLen (line 56) | directoryHeaderLen = 46 constant directoryEndLen (line 57) | directoryEndLen = 22 constant dataDescriptorLen (line 58) | dataDescriptorLen = 16 constant dataDescriptor64Len (line 59) | dataDescriptor64Len = 24 constant directory64LocLen (line 60) | directory64LocLen = 20 constant directory64EndLen (line 61) | directory64EndLen = 56 constant creatorFAT (line 64) | creatorFAT = 0 constant creatorUnix (line 65) | creatorUnix = 3 constant creatorNTFS (line 66) | creatorNTFS = 11 constant creatorVFAT (line 67) | creatorVFAT = 14 constant creatorMacOSX (line 68) | creatorMacOSX = 19 constant zipVersion20 (line 71) | zipVersion20 = 20 constant zipVersion45 (line 72) | zipVersion45 = 45 constant uint16max (line 75) | uint16max = (1 << 16) - 1 constant uint32max (line 76) | uint32max = (1 << 32) - 1 constant zip64ExtraID (line 87) | zip64ExtraID = 0x0001 constant ntfsExtraID (line 88) | ntfsExtraID = 0x000a constant unixExtraID (line 89) | unixExtraID = 0x000d constant extTimeExtraID (line 90) | extTimeExtraID = 0x5455 constant infoZipUnixExtraID (line 91) | infoZipUnixExtraID = 0x5855 function ZipTOCSize (line 111) | func ZipTOCSize(size int64, zipFooter []byte) (tocSize int64, ok bool) { type Reader (line 135) | type Reader struct function ParseTOC (line 150) | func ParseTOC(size int64, toc []byte) (*Reader, error) { function readDirectoryEnd (line 192) | func readDirectoryEnd(r io.ReaderAt, size int64) (dir *directoryEnd, bas... type FileHeader (line 275) | type FileHeader struct method hasDataDesc (line 810) | func (h *FileHeader) hasDataDesc() bool { function readDirectoryHeader (line 362) | func readDirectoryHeader(f *FileHeader, r io.Reader) error { function findDirectory64End (line 536) | func findDirectory64End(r io.ReaderAt, directoryEndOffset int64) (int64,... function readDirectory64End (line 561) | func readDirectory64End(r io.ReaderAt, offset int64, d *directoryEnd) (e... function findSignatureInBlock (line 583) | func findSignatureInBlock(b []byte) int { type readBuf (line 601) | type readBuf method uint8 (line 603) | func (b *readBuf) uint8() uint8 { method uint16 (line 609) | func (b *readBuf) uint16() uint16 { method uint32 (line 615) | func (b *readBuf) uint32() uint32 { method uint64 (line 621) | func (b *readBuf) uint64() uint64 { method sub (line 627) | func (b *readBuf) sub(n int) readBuf { type directoryEnd (line 633) | type directoryEnd struct function msDosTimeToTime (line 647) | func msDosTimeToTime(dosDate, dosTime uint16) time.Time { function detectUTF8 (line 667) | func detectUTF8(s string) (valid, require bool) { function timeZone (line 689) | func timeZone(offset time.Duration) *time.Location { constant openReadSlop (line 706) | openReadSlop = 512 function OpenWithReader (line 719) | func OpenWithReader(h *FileHeader, getRawReader func(offsize, size int64... function newFlateReader (line 774) | func newFlateReader(r io.Reader) io.ReadCloser { type pooledFlateReader (line 784) | type pooledFlateReader struct method Read (line 789) | func (r *pooledFlateReader) Read(p []byte) (n int, err error) { method Close (line 798) | func (r *pooledFlateReader) Close() error { function skipHeader (line 817) | func skipHeader(r io.Reader) (variableLen int64, err error) { type checksumReader (line 836) | type checksumReader struct method setErr (line 846) | func (r *checksumReader) setErr(err error) error { method Read (line 858) | func (r *checksumReader) Read(b []byte) (n int, err error) { method Close (line 897) | func (r *checksumReader) Close() error { function readDataDescriptor (line 909) | func readDataDescriptor(r io.Reader, f *FileHeader) error { FILE: ziputil/ziputil_test.go type testZip (line 18) | type testZip struct method Len (line 24) | func (tz *testZip) Len() int { return len(tz.data) } method Size (line 25) | func (tz *testZip) Size() int64 { return int64(len(tz.data)) } function mkZip (line 27) | func mkZip(t testing.TB, name string, numFiles int) *testZip { function TestZipTOCSize (line 47) | func TestZipTOCSize(t *testing.T) { function goTestZips (line 145) | func goTestZips(t testing.TB) (baseNames []string) { function TestGoTestZips (line 159) | func TestGoTestZips(t *testing.T) { function TestOpenWithReader (line 199) | func TestOpenWithReader(t *testing.T) { type closeTracker (line 265) | type closeTracker struct method Close (line 270) | func (c *closeTracker) Close() error {