Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 69 for interfaces (9.18 sec)

  1. src/cmd/api/testdata/src/pkg/p2/p2.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p2
    
    type Twoer interface {
    	// Deprecated: No good.
    	PackageTwoMeth()
    }
    
    // Deprecated: No good.
    func F() string {}
    
    func G() Twoer {}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 337 bytes
    - Viewed (0)
  2. src/cmd/cgo/godefs.go

    			}
    		}
    	}
    
    	conf.Fprint(&buf, fset, f.AST)
    
    	return buf.String()
    }
    
    var gofmtBuf strings.Builder
    
    // gofmt returns the gofmt-formatted string for an AST node.
    func gofmt(n interface{}) string {
    	gofmtBuf.Reset()
    	err := printer.Fprint(&gofmtBuf, fset, n)
    	if err != nil {
    		return "<" + err.Error() + ">"
    	}
    	return gofmtBuf.String()
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Sep 08 14:33:35 GMT 2022
    - 4.5K bytes
    - Viewed (0)
  3. src/cmd/asm/main.go

    		}
    	}
    
    	var ok, diag bool
    	var failedFile string
    	for _, f := range flag.Args() {
    		lexer := lex.NewLexer(f)
    		parser := asm.NewParser(ctxt, architecture, lexer)
    		ctxt.DiagFunc = func(format string, args ...interface{}) {
    			diag = true
    			log.Printf(format, args...)
    		}
    		if *flags.SymABIs {
    			ok = parser.ParseSymABIs(buf)
    		} else {
    			pList := new(obj.Plist)
    			pList.Firstpc, ok = parser.Parse()
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 2.7K bytes
    - Viewed (0)
  4. api/go1.14.txt

    pkg encoding/asn1, const TagBMPString ideal-int
    pkg encoding/json, method (*Decoder) InputOffset() int64
    pkg go/build, type Context struct, Dir string
    pkg go/doc, func NewFromFiles(*token.FileSet, []*ast.File, string, ...interface{}) (*Package, error)
    pkg go/doc, type Example struct, Suffix string
    pkg go/doc, type Func struct, Examples []*Example
    pkg go/doc, type Package struct, Examples []*Example
    pkg go/doc, type Type struct, Examples []*Example
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 508.9K bytes
    - Viewed (0)
  5. src/bufio/scan.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bufio
    
    import (
    	"bytes"
    	"errors"
    	"io"
    	"unicode/utf8"
    )
    
    // Scanner provides a convenient interface for reading data such as
    // a file of newline-delimited lines of text. Successive calls to
    // the [Scanner.Scan] method will step through the 'tokens' of a file, skipping
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  6. src/archive/zip/reader.go

    // If file == nil, the fileListEntry describes a directory without metadata.
    type fileListEntry struct {
    	name  string
    	file  *File
    	isDir bool
    	isDup bool
    }
    
    type fileInfoDirEntry interface {
    	fs.FileInfo
    	fs.DirEntry
    }
    
    func (f *fileListEntry) stat() (fileInfoDirEntry, error) {
    	if f.isDup {
    		return nil, errors.New(f.name + ": duplicate entries in zip file")
    	}
    	if !f.isDir {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  7. api/go1.20.txt

    pkg strings, func CutSuffix(string, string) (string, bool) #42537
    pkg sync, method (*Map) CompareAndDelete(interface{}, interface{}) bool #51972
    pkg sync, method (*Map) CompareAndSwap(interface{}, interface{}, interface{}) bool #51972
    pkg sync, method (*Map) Swap(interface{}, interface{}) (interface{}, bool) #51972
    pkg syscall (freebsd-386-cgo), const SYS_FSTAT = 551 #53280
    pkg syscall (freebsd-386-cgo), const SYS_FSTATAT = 552 #53280
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 21:23:32 GMT 2023
    - 602.6K bytes
    - Viewed (0)
  8. src/builtin/builtin.go

    type rune = int32
    
    // any is an alias for interface{} and is equivalent to interface{} in all ways.
    type any = interface{}
    
    // comparable is an interface that is implemented by all comparable types
    // (booleans, numbers, strings, pointers, channels, arrays of comparable types,
    // structs whose fields are all comparable types).
    // The comparable interface may only be used as a type parameter constraint,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  9. src/cmd/api/testdata/src/issue21181/indirect/p.go

    package indirect
    
    import "dep"
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 05 17:53:43 GMT 2018
    - 57 bytes
    - Viewed (0)
  10. misc/ios/detect.go

    		fmt.Fprintln(os.Stderr, err)
    		os.Exit(1)
    	}
    	return out
    }
    
    func check(err error) {
    	if err != nil {
    		fail(err.Error())
    	}
    }
    
    func fail(msg string, v ...interface{}) {
    	fmt.Fprintf(os.Stderr, msg, v...)
    	fmt.Fprintln(os.Stderr)
    	os.Exit(1)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Oct 19 23:33:30 GMT 2023
    - 3.2K bytes
    - Viewed (0)
Back to top