Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 263 for asString (0.29 sec)

  1. src/cmd/go/internal/modindex/read.go

    	embedPos := make(map[string][]token.Position)
    	testEmbedPos := make(map[string][]token.Position)
    	xTestEmbedPos := make(map[string][]token.Position)
    	importPos := make(map[string][]token.Position)
    	testImportPos := make(map[string][]token.Position)
    	xTestImportPos := make(map[string][]token.Position)
    	allTags := make(map[string]bool)
    	for _, tf := range rp.sourceFiles {
    		name := tf.name()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    	// }
    	import "C"
    	import "unsafe"
    
    	func main() {
    		cs := C.CString("Hello from stdio")
    		C.myprint(cs)
    		C.free(unsafe.Pointer(cs))
    	}
    
    A few special functions convert between Go and C types
    by making copies of the data. In pseudo-Go definitions:
    
    	// Go string to C string
    	// The C string is allocated in the C heap using malloc.
    	// It is the caller's responsibility to arrange for it to be
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modfetch/codehost/vcs.go

    }
    
    var re = lazyregexp.New
    
    var vcsCmds = map[string]*vcsCmd{
    	"hg": {
    		vcs: "hg",
    		init: func(remote string) []string {
    			return []string{"hg", "clone", "-U", "--", remote, "."}
    		},
    		tags: func(remote string) []string {
    			return []string{"hg", "tags", "-q"}
    		},
    		tagRE: re(`(?m)^[^\n]+$`),
    		branches: func(remote string) []string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:50:24 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/format.go

    func (check *Checker) dump(format string, args ...any) {
    	fmt.Println(sprintf(check.qualifier, true, format, args...))
    }
    
    func (check *Checker) qualifier(pkg *Package) string {
    	// Qualify the package unless it's the package being type-checked.
    	if pkg != check.pkg {
    		if check.pkgPathMap == nil {
    			check.pkgPathMap = make(map[string]map[string]bool)
    			check.seenPkgMap = make(map[*Package]bool)
    			check.markImports(check.pkg)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modinfo/info.go

    // and the fields are documented in the help text in ../list/list.go
    
    type ModulePublic struct {
    	Path       string           `json:",omitempty"` // module path
    	Version    string           `json:",omitempty"` // module version
    	Query      string           `json:",omitempty"` // version query corresponding to this version
    	Versions   []string         `json:",omitempty"` // available module versions
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/predicates.go

    func isFloat(t Type) bool          { return isBasic(t, IsFloat) }
    func isComplex(t Type) bool        { return isBasic(t, IsComplex) }
    func isNumeric(t Type) bool        { return isBasic(t, IsNumeric) }
    func isString(t Type) bool         { return isBasic(t, IsString) }
    func isIntegerOrFloat(t Type) bool { return isBasic(t, IsInteger|IsFloat) }
    func isConstType(t Type) bool      { return isBasic(t, IsConstType) }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/validtype.go

    //         path = A[A[string]]->B[P]->A[string]->B[P]
    //   P₁
    //         nest = A[string]
    //         path = A[A[string]]->B[P]->A[string]->B[P]
    //   string
    //         nest =
    //         path = A[A[string]]->B[P]->A[string]->B[P]
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 13:22:37 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  8. src/bytes/bytes_test.go

    	{faces, "☹", -1, []string{"☺☻", ""}},
    	{faces, "~", -1, []string{faces}},
    	{faces, "", -1, []string{"☺", "☻", "☹"}},
    	{"1 2 3 4", " ", 3, []string{"1", "2", "3 4"}},
    	{"1 2", " ", 3, []string{"1", "2"}},
    	{"123", "", 2, []string{"1", "23"}},
    	{"123", "", 17, []string{"1", "2", "3"}},
    	{"bT", "T", math.MaxInt / 4, []string{"b", ""}},
    	{"\xff-\xff", "", -1, []string{"\xff", "-", "\xff"}},
    	{"\xff-\xff", "-", -1, []string{"\xff", "\xff"}},
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/workcmd/edit.go

    	type GoWork struct {
    		Go        string
    		Toolchain string
    		Godebug   []Godebug
    		Use       []Use
    		Replace   []Replace
    	}
    
    	type Godebug struct {
    		Key   string
    		Value string
    	}
    
    	type Use struct {
    		DiskPath   string
    		ModulePath string
    	}
    
    	type Replace struct {
    		Old Module
    		New Module
    	}
    
    	type Module struct {
    		Path    string
    		Version string
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/cmd/go/internal/envcmd/env.go

    	}
    }
    
    func runEnvW(args []string) {
    	// Process and sanity-check command line.
    	if len(args) == 0 {
    		base.Fatalf("go: no KEY=VALUE arguments given")
    	}
    	osEnv := make(map[string]string)
    	for _, e := range cfg.OrigEnv {
    		if i := strings.Index(e, "="); i >= 0 {
    			osEnv[e[:i]] = e[i+1:]
    		}
    	}
    	add := make(map[string]string)
    	for _, arg := range args {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top