- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 505 for runExe (0.11 sec)
-
test/fixedbugs/bug460.dir/b.go
package b import "./a" var x a.Foo func main() { x.int = 20 // ERROR "unexported field|undefined" x.int8 = 20 // ERROR "unexported field|undefined" x.error = nil // ERROR "unexported field|undefined" x.rune = 'a' // ERROR "unexported field|undefined" x.byte = 20 // ERROR "unexported field|undefined"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 19 06:26:35 UTC 2021 - 479 bytes - Viewed (0) -
src/encoding/json/scanner_test.go
"reflect" "strings" "testing" ) func indentNewlines(s string) string { return strings.Join(strings.Split(s, "\n"), "\n\t") } func stripWhitespace(s string) string { return strings.Map(func(r rune) rune { if r == ' ' || r == '\n' || r == '\r' || r == '\t' { return -1 } return r }, s) } func TestValid(t *testing.T) { tests := []struct { CaseName data string ok bool }{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 16:00:37 UTC 2023 - 6.9K bytes - Viewed (0) -
test/fixedbugs/bug204.go
// run // Copyright 2009 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 main func main() { nchar := 0 a := []rune{'日', '本', '語', 0xFFFD} for _, char := range "日本語\xc0" { if nchar >= len(a) { println("BUG") break } if char != a[nchar] { println("expected", a[nchar], "got", char) println("BUG") break
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:49:30 UTC 2012 - 460 bytes - Viewed (0) -
src/regexp/exec.go
// (most of the time, that means never). type lazyFlag uint64 func newLazyFlag(r1, r2 rune) lazyFlag { return lazyFlag(uint64(r1)<<32 | uint64(uint32(r2))) } func (f lazyFlag) match(op syntax.EmptyOp) bool { if op == 0 { return true } r1 := rune(f >> 32) if op&syntax.EmptyBeginLine != 0 { if r1 != '\n' && r1 >= 0 { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 04 20:10:54 UTC 2022 - 12.3K bytes - Viewed (0) -
src/cmd/vet/testdata/method/method.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 394 bytes - Viewed (0) -
test/range.go
nmake++ return "abcd☺" } func teststring() { var s rune nmake = 0 for _, v := range makestring() { s += v } if nmake != 1 { println("range called makestring", nmake, "times") panic("fail") } if s != 'a'+'b'+'c'+'d'+'☺' { println("wrong sum ranging over makestring", s) panic("fail") } x := []rune{'a', 'b'} i := 1 for i, x[i] = range "c" { break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 05:50:54 UTC 2017 - 8.1K bytes - Viewed (0) -
src/strconv/example_test.go
} func ExampleAppendQuoteRune() { b := []byte("rune:") b = strconv.AppendQuoteRune(b, '☺') fmt.Println(string(b)) // Output: // rune:'☺' } func ExampleAppendQuoteRuneToASCII() { b := []byte("rune (ascii):") b = strconv.AppendQuoteRuneToASCII(b, '☺') fmt.Println(string(b)) // Output: // rune (ascii):'\u263a' } func ExampleAppendQuoteToASCII() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 22:57:37 UTC 2023 - 8.9K bytes - Viewed (0) -
src/cmd/go/internal/workcmd/use.go
for more information. `, } var useR = cmdUse.Flag.Bool("r", false, "") func init() { cmdUse.Run = runUse // break init cycle base.AddChdirFlag(&cmdUse.Flag) base.AddModCommonFlags(&cmdUse.Flag) } func runUse(ctx context.Context, cmd *base.Command, args []string) { modload.ForceUseModules = true modload.InitWorkfile() gowork := modload.WorkFilePath()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/text/cases/info.go
// is undesirable for our purposes. ICU prevents breaks in such cases as well. // isBreak returns whether this rune should introduce a break. func (c info) isBreak() bool { return c.cccVal() == cccBreak } // isLetter returns whether the rune is of break type ALetter, Hebrew_Letter, // Numeric, ExtendNumLet, or Extend. func (c info) isLetter() bool { ccc := c.cccVal() if ccc == cccZero {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 2.9K bytes - Viewed (0) -
src/strings/replace_test.go
} func BenchmarkMap(b *testing.B) { mapidentity := func(r rune) rune { return r } b.Run("identity", func(b *testing.B) { for _, md := range mapdata { b.Run(md.name, func(b *testing.B) { for i := 0; i < b.N; i++ { Map(mapidentity, md.data) } }) } }) mapchange := func(r rune) rune { if 'a' <= r && r <= 'z' { return r + 'A' - 'a' }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 24 22:53:05 UTC 2017 - 14.1K bytes - Viewed (0)