- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for StringVal (0.48 sec)
-
test/asmhdr.dir/main.go
func main() { if smallInt != smallIntAsm { println("smallInt", smallInt, "!=", smallIntAsm) } if bigInt != bigIntAsm { println("bigInt", uint64(bigInt), "!=", bigIntAsm) } if stringVal != string(stringAsm[:]) { println("stringVal", stringVal, "!=", string(stringAsm[:])) } if longStringVal != string(longStringAsm[:]) { println("longStringVal", longStringVal, "!=", string(longStringAsm[:])) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 10 21:27:19 UTC 2022 - 1.8K bytes - Viewed (0) -
src/fmt/scan_test.go
{"X %d X", "X 27 X", &intVal, 27}, {"X %s X", "X27X", &stringVal, nil}, // expected space in input to match format {"X %s X", "X27 X", &stringVal, nil}, // expected space in input to match format {"X %s X", "X 27X", &stringVal, nil}, // unexpected EOF {"X %s X", "X 27 X", &stringVal, "27"}, {"X%sX", "X27X", &stringVal, nil}, // unexpected EOF {"X%sX", "X27 X", &stringVal, nil}, // input does not match format
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 20:25:13 UTC 2023 - 39.3K bytes - Viewed (0) -
src/go/constant/value.go
case unknownVal: return false default: panic(fmt.Sprintf("%v not a Bool", x)) } } // StringVal returns the Go string value of x, which must be a [String] or an [Unknown]. // If x is [Unknown], the result is "". func StringVal(x Value) string { switch x := x.(type) { case *stringVal: return x.string() case unknownVal: return "" default: panic(fmt.Sprintf("%v not a String", x)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/yaml_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 02 19:34:41 UTC 2021 - 16.5K bytes - Viewed (0) -
src/go/constant/example_test.go
if constant.Compare(a, token.LSS, b) { return -1 } if constant.Compare(a, token.GTR, b) { return +1 } return 0 }) for _, v := range vs { fmt.Println(constant.StringVal(v)) } // Output: // // Frame // Z // a // bacon // defer // go } func ExampleSign() { zero := constant.MakeInt64(0) one := constant.MakeInt64(1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/compile/internal/walk/switch.go
sort.Slice(cc, func(i, j int) bool { si := ir.StringVal(cc[i].lo) sj := ir.StringVal(cc[j].lo) if len(si) != len(sj) { return len(si) < len(sj) } return si < sj }) // runLen returns the string length associated with a // particular run of exprClauses. runLen := func(run []exprClause) int64 { return int64(len(ir.StringVal(run[0].lo))) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 30.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/timeformat/timeformat.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.3K bytes - Viewed (0) -
src/syscall/js/js.go
case string: return makeValue(stringVal(x)) case []any: a := arrayConstructor.New(len(x)) for i, s := range x { a.SetIndex(i, s) } return a case map[string]any: o := objectConstructor.New() for k, v := range x { o.Set(k, v) } return o default: panic("ValueOf: invalid value") } } // stringVal copies string x to Javascript and returns a ref. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 14:35:26 UTC 2024 - 19.5K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/test/integration/apply_test.go
rest := apiExtensionClient.Discovery().RESTClient() yamlBody := []byte(fmt.Sprintf(` apiVersion: %s kind: %s metadata: name: mytest values: numVal: 1 boolVal: true stringVal: "1"`, apiVersion, kind)) result, err := rest.Patch(types.ApplyPatchType). AbsPath("/apis", noxuDefinition.Spec.Group, noxuDefinition.Spec.Versions[0].Name, noxuDefinition.Spec.Names.Plural). Name("mytest").
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 27 11:48:28 UTC 2022 - 3.5K bytes - Viewed (0) -
src/go/types/index.go
valid := false length := int64(-1) // valid if >= 0 switch typ := under(x.typ).(type) { case *Basic: if isString(typ) { valid = true if x.mode == constant_ { length = int64(len(constant.StringVal(x.val))) } // an indexed string always yields a byte value // (not a constant) even if the string and the // index are constant x.mode = value x.typ = universeByte // use 'byte' name }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 16:17:05 UTC 2024 - 11.2K bytes - Viewed (0)