- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 55 for chars (0.11 sec)
-
src/regexp/syntax/prog_test.go
r1 = r2 } EmptyOpContext(r1, -1) } } var sink any func BenchmarkIsWordChar(b *testing.B) { const chars = "Don't communicate by sharing memory, share memory by communicating." for i := 0; i < b.N; i++ { for _, r := range chars { sink = IsWordChar(r) } } if sink == nil { b.Fatal("Benchmark did not run") } sink = nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 14 04:39:42 UTC 2023 - 2.3K bytes - Viewed (0) -
src/internal/types/errors/codes_test.go
} } }) if testing.Verbose() { var totChars, totCount int for chars, count := range nameHist { totChars += chars * count totCount += count } avg := float64(totChars) / float64(totCount) fmt.Println() fmt.Printf("%d error codes\n", totCount) fmt.Printf("average length: %.2f chars\n", avg) fmt.Printf("max length: %d (%s)\n", len(longestName), longestName) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 18 20:41:45 UTC 2022 - 4.9K bytes - Viewed (0) -
src/cmd/internal/objabi/path.go
// last segment of the path, and it makes for happier users if we escape that as // little as possible. func PathToPrefix(s string) string { slash := strings.LastIndex(s, "/") // check for chars that need escaping n := 0 for r := 0; r < len(s); r++ { if c := s[r]; c <= ' ' || (c == '.' && r > slash) || c == '%' || c == '"' || c >= 0x7F { n++ } } // quick exit if n == 0 { return s
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 13:56:25 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/structtag/structtag.go
i++ } tag = tag[i:] if tag == "" { break } // Scan to colon. A space, a quote or a control character is a syntax error. // Strictly speaking, control chars include the range [0x7f, 0x9f], not just // [0x00, 0x1f], but in practice, we ignore the multi-byte control characters // as it is simpler to inspect the tag's bytes than the tag's runes. i = 0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 8.8K bytes - Viewed (0) -
src/html/template/error.go
// Maybe refactor recursive templates to not be recursive. ErrOutputContext // ErrPartialCharset: "unfinished JS regexp charset in ..." // Example: // <script>var pattern = /foo[{{.Chars}}]/</script> // Discussion: // Package html/template does not support interpolation into regular // expression literal character sets. ErrPartialCharset
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 02 15:18:39 UTC 2023 - 9.3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/chans.go
// Copyright 2022 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 chans import "runtime" // Ranger returns a Sender and a Receiver. The Receiver provides a // Next method to retrieve values. The Sender provides a Send method // to send values and a Close method to stop sending values. The Next
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 30 18:02:18 UTC 2022 - 1.8K bytes - Viewed (0) -
test/typeparam/chans.go
// run // Copyright 2021 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 chans provides utility functions for working with channels. package main import ( "context" "fmt" "runtime" "sort" "sync" "time" ) // _Equal reports whether two slices are equal: the same length and all
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 8.4K bytes - Viewed (0) -
src/internal/types/testdata/check/chans.go
package chans import "runtime" // Ranger returns a Sender and a Receiver. The Receiver provides a // Next method to retrieve values. The Sender provides a Send method // to send values and a Close method to stop sending values. The Next // method indicates when the Sender has been closed, and the Send // method indicates when the Receiver has been freed. // // This is a convenient way to exit a goroutine sending values when
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 1.7K bytes - Viewed (0) -
src/internal/singleflight/singleflight.go
ch := make(chan Result, 1) g.mu.Lock() if g.m == nil { g.m = make(map[string]*call) } if c, ok := g.m[key]; ok { c.dups++ c.chans = append(c.chans, ch) g.mu.Unlock() return ch } c := &call{chans: []chan<- Result{ch}} c.wg.Add(1) g.m[key] = c g.mu.Unlock() go g.doCall(c, key, fn) return ch } // doCall handles the single call for a key.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 20:49:56 UTC 2022 - 3.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testlife/testdata/life.go
} } // Keep the channels visible from Go. var chans [4]chan bool // Double return value is just for testing. // //export GoStart func GoStart(i, xdim, ydim, xstart, xend, ystart, yend C.int, a *C.int, n *C.int) (int, int) { c := make(chan bool, int(C.MYCONST)) go func() { C.DoStep(xdim, ydim, xstart, xend, ystart, yend, a, n) c <- true }() chans[i] = c return int(i), int(i + 100) } //export GoWait
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 892 bytes - Viewed (0)