Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for join (0.98 sec)

  1. src/cmd/cgo/ast.go

    		case '/':
    			//-style comment (no newline at the end)
    			c = c[2:] + "\n"
    		case '*':
    			/*-style comment */
    			c = c[2 : len(c)-2]
    		}
    		pieces = append(pieces, c)
    	}
    	return strings.Join(pieces, "")
    }
    
    func (f *File) validateIdents(x interface{}, context astContext) {
    	if x, ok := x.(*ast.Ident); ok {
    		if f.isMangledName(x.Name) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. misc/go_android_exec/main.go

    		return 0, err
    	}
    	var deviceCwd string
    	if isStd {
    		// Note that we use path.Join here instead of filepath.Join:
    		// The device paths should be slash-separated even if the go_android_exec
    		// wrapper itself is compiled for Windows.
    		deviceCwd = path.Join(deviceGoroot, "src", importPath)
    	} else {
    		deviceCwd = path.Join(deviceGopath, "src", importPath)
    		if modDir != "" {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Aug 21 17:46:57 GMT 2023
    - 15.3K bytes
    - Viewed (0)
  3. misc/ios/go_ios_exec.go

    	}
    	if err := os.WriteFile(filepath.Join(appdir, "Info.plist"), []byte(infoPlist(pkgpath)), 0744); err != nil {
    		return err
    	}
    	if err := os.WriteFile(filepath.Join(appdir, "ResourceRules.plist"), []byte(resourceRules), 0744); err != nil {
    		return err
    	}
    	return nil
    }
    
    func signApp(appdir string) error {
    	entitlementsPath := filepath.Join(tmpdir, "Entitlements.plist")
    	cmd := exec.Command(
    		"codesign",
    		"-f",
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 23.4K bytes
    - Viewed (0)
  4. src/bytes/bytes.go

    	a := make([][]byte, len(spans))
    	for i, span := range spans {
    		a[i] = s[span.start:span.end:span.end]
    	}
    
    	return a
    }
    
    // Join concatenates the elements of s to create a new byte slice. The separator
    // sep is placed between elements in the resulting slice.
    func Join(s [][]byte, sep []byte) []byte {
    	if len(s) == 0 {
    		return []byte{}
    	}
    	if len(s) == 1 {
    		// Just return a copy.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  5. src/cmd/api/main_test.go

    var exitCode = 0
    
    func Check(t *testing.T) {
    	checkFiles, err := filepath.Glob(filepath.Join(testenv.GOROOT(t), "api/go1*.txt"))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	var nextFiles []string
    	if v := runtime.Version(); strings.Contains(v, "devel") || strings.Contains(v, "beta") {
    		next, err := filepath.Glob(filepath.Join(testenv.GOROOT(t), "api/next/*.txt"))
    		if err != nil {
    			t.Fatal(err)
    		}
    		nextFiles = next
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  6. src/archive/tar/writer.go

    			spb = append(spb, zeroBlock[:pad]...)
    			hdr.Size += int64(len(spb)) // Accounts for encoded sparse map
    
    			// Add and modify appropriate PAX records.
    			dir, file := path.Split(realName)
    			hdr.Name = path.Join(dir, "GNUSparseFile.0", file)
    			paxHdrs[paxGNUSparseMajor] = "1"
    			paxHdrs[paxGNUSparseMinor] = "0"
    			paxHdrs[paxGNUSparseName] = realName
    			paxHdrs[paxGNUSparseRealSize] = strconv.FormatInt(realSize, 10)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  7. src/archive/tar/format.go

    		if f.has(f2) {
    			ss = append(ss, formatNames[f2])
    		}
    	}
    	switch len(ss) {
    	case 0:
    		return "<unknown>"
    	case 1:
    		return ss[0]
    	default:
    		return "(" + strings.Join(ss, " | ") + ")"
    	}
    }
    
    // Magics used to identify various formats.
    const (
    	magicGNU, versionGNU     = "ustar ", " \x00"
    	magicUSTAR, versionUSTAR = "ustar\x00", "00"
    	trailerSTAR              = "tar\x00"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/lex/input.go

    	}
    	in.expectNewline("#include")
    	// Push tokenizer for file onto stack.
    	fd, err := os.Open(name)
    	if err != nil {
    		for _, dir := range in.includes {
    			fd, err = os.Open(filepath.Join(dir, name))
    			if err == nil {
    				break
    			}
    		}
    		if err != nil {
    			in.Error("#include:", err)
    		}
    	}
    	in.Push(NewTokenizer(name, fd, fd))
    }
    
    // #line processing.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  9. src/bytes/example_test.go

    	fmt.Println(bytes.IndexRune([]byte("chicken"), 'd'))
    	// Output:
    	// 4
    	// -1
    }
    
    func ExampleJoin() {
    	s := [][]byte{[]byte("foo"), []byte("bar"), []byte("baz")}
    	fmt.Printf("%s", bytes.Join(s, []byte(", ")))
    	// Output: foo, bar, baz
    }
    
    func ExampleLastIndex() {
    	fmt.Println(bytes.Index([]byte("go gopher"), []byte("go")))
    	fmt.Println(bytes.LastIndex([]byte("go gopher"), []byte("go")))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  10. src/archive/tar/common.go

    	var ss []string
    	for _, s := range he {
    		if s != "" {
    			ss = append(ss, s)
    		}
    	}
    	if len(ss) == 0 {
    		return prefix
    	}
    	return fmt.Sprintf("%s: %v", prefix, strings.Join(ss, "; and "))
    }
    
    // Type flags for Header.Typeflag.
    const (
    	// Type '0' indicates a regular file.
    	TypeReg = '0'
    
    	// Deprecated: Use TypeReg instead.
    	TypeRegA = '\x00'
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
Back to top