- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 39 for join (0.16 sec)
-
doc/go1.17_spec.html
assignment of regular parameters. </p> <pre> func Split(s string, pos int) (string, string) { return s[0:pos], s[pos:] } func Join(s, t string) string { return s + t } if Join(Split(value, len(value)/2)) != value { log.Panic("test fails") } </pre> <p> A method call <code>x.m()</code> is valid if the <a href="#Method_sets">method set</a>
HTML - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Apr 11 20:22:45 GMT 2024 - 211.6K bytes - Viewed (0) -
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) -
api/go1.13.txt
pkg syscall (netbsd-arm64-cgo), const IPV6_HOPOPTS ideal-int pkg syscall (netbsd-arm64-cgo), const IPV6_IPSEC_POLICY = 28 pkg syscall (netbsd-arm64-cgo), const IPV6_IPSEC_POLICY ideal-int pkg syscall (netbsd-arm64-cgo), const IPV6_JOIN_GROUP = 12 pkg syscall (netbsd-arm64-cgo), const IPV6_LEAVE_GROUP = 13 pkg syscall (netbsd-arm64-cgo), const IPV6_MAXHLIM = 255 pkg syscall (netbsd-arm64-cgo), const IPV6_MAXHLIM ideal-int
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Thu Aug 08 18:44:16 GMT 2019 - 452.6K bytes - Viewed (0) -
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) -
src/cmd/cgo/gcc.go
f.NoCallbacks[funcName] = true } else if directive == "noescape" { fatalf("#cgo noescape disabled until Go 1.23") f.NoEscapes[funcName] = true } } } } f.Preamble = strings.Join(linesOut, "\n") } // addToFlag appends args to flag. func (p *Package) addToFlag(flag string, args []string) { if flag == "CFLAGS" { // We'll also need these when preprocessing for dwarf information.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Nov 02 16:43:23 GMT 2023 - 97K bytes - Viewed (0) -
src/cmd/asm/internal/asm/endtoend_test.go
// Output is generated by, in effect, turning on -S and comparing the // result against a golden file. func testEndToEnd(t *testing.T, goarch, file string) { input := filepath.Join("testdata", file+".s") architecture, ctxt := setArch(goarch) architecture.Init(ctxt) lexer := lex.NewLexer(input) parser := NewParser(ctxt, architecture, lexer) pList := new(obj.Plist) var ok bool
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Dec 07 18:42:59 GMT 2023 - 11.6K bytes - Viewed (0) -
src/archive/tar/reader_test.go
}, { inputData: padInput("100\n" + func() string { var ss []string for i := 0; i < 100; i++ { ss = append(ss, fmt.Sprintf("%d\n%d\n", int64(i)<<30, 512)) } return strings.Join(ss, "") }()), inputHdrs: map[string]string{paxGNUSparseMajor: "1", paxGNUSparseMinor: "0"}, wantMap: func() (spd sparseDatas) { for i := 0; i < 100; i++ {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Nov 21 21:14:38 GMT 2022 - 47.1K bytes - Viewed (0) -
api/go1.16.txt
pkg syscall (darwin-arm64), const SYS_AUDITON = 351 pkg syscall (darwin-arm64), const SYS_AUDITON ideal-int pkg syscall (darwin-arm64), const SYS_AUDIT_SESSION_JOIN = 429 pkg syscall (darwin-arm64), const SYS_AUDIT_SESSION_JOIN ideal-int pkg syscall (darwin-arm64), const SYS_AUDIT_SESSION_PORT = 432 pkg syscall (darwin-arm64), const SYS_AUDIT_SESSION_PORT ideal-int
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Fri Dec 02 16:30:41 GMT 2022 - 479.2K bytes - Viewed (0) -
api/go1.txt
pkg bytes, func IndexAny([]uint8, string) int pkg bytes, func IndexByte([]uint8, uint8) int pkg bytes, func IndexFunc([]uint8, func(int32) bool) int pkg bytes, func IndexRune([]uint8, int32) int pkg bytes, func Join([][]uint8, []uint8) []uint8 pkg bytes, func LastIndex([]uint8, []uint8) int pkg bytes, func LastIndexAny([]uint8, string) int pkg bytes, func LastIndexFunc([]uint8, func(int32) bool) int
Plain Text - Registered: Tue May 07 11:14:38 GMT 2024 - Last Modified: Wed Aug 14 18:58:28 GMT 2013 - 1.7M bytes - Viewed (2) -
src/cmd/asm/internal/lex/lex_test.go
result := drain(input) if result != test.output { t.Errorf("%s: got %q expected %q", test.name, result, test.output) } } } // lines joins the arguments together as complete lines. func lines(a ...string) string { return strings.Join(a, "\n") + "\n" } // drain returns a single string representing the processed input tokens. func drain(input *Input) string { var buf strings.Builder for {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 5.8K bytes - Viewed (0)