- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 298 for Mystring (0.27 sec)
-
src/runtime/testdata/testprog/panicprint.go
type MyInt32 int32 type MyInt64 int64 type MyString string type MyUint uint type MyUint8 uint8 type MyUint16 uint16 type MyUint32 uint32 type MyUint64 uint64 type MyUintptr uintptr func panicCustomComplex64() { panic(MyComplex64(0.11 + 3i)) } func panicCustomComplex128() { panic(MyComplex128(32.1 + 10i)) } func panicCustomString() { panic(MyString("Panic\nline two")) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 2.2K bytes - Viewed (0) -
src/internal/types/testdata/check/expr1.go
z = z /* ERRORx `operand z .* must be integer` */ >> y } type mystring string func _(x, y string, z mystring) { x = x + "foo" x = x /* ERROR "not defined" */ - "foo" x = x /* ERROR "mismatched types string and untyped int" */ + 1 x = x + y x = x /* ERROR "not defined" */ - y x = x /* ERROR "mismatched types string and untyped int" */* 10 } func f() (a, b int) { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 2.7K bytes - Viewed (0) -
src/internal/types/testdata/spec/conversions.go
} // "x is an integer or a slice of bytes or runes and T is a string type" type myInt int type myString string func _[T ~string](x int) T { return T(x) } func _[T ~string](x myInt) T { return T(x) } func _[X Integer](x X) string { return string(x) } func _[X Integer](x X) myString { return myString(x) } func _[X Integer](x X) *string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 7.4K bytes - Viewed (0) -
src/runtime/panic_test.go
// when the underlying kind is directly printable. // Issue: https://golang.org/issues/37531 func TestPanicWithDirectlyPrintableCustomTypes(t *testing.T) { tests := []struct { name string wantPanicPrefix string }{ {"panicCustomBool", `panic: main.MyBool(true)`}, {"panicCustomComplex128", `panic: main.MyComplex128(+3.210000e+001+1.000000e+001i)`},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 1.7K bytes - Viewed (0) -
src/internal/types/testdata/check/typeinst1.go
return x + 1 } type MyString string func double[T interface{MyInt|MyString}](x T) T { return x + x } // Embedding of interfaces with term lists leads to interfaces // with term lists that are the intersection of the embedded // term lists. type E0 interface { ~int | ~bool | ~string } type E1 interface { ~int | ~float64 | ~string } type E2 interface { ~float64
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 5.7K bytes - Viewed (0) -
src/reflect/all_test.go
{V(MyString("hello")), V(string("hello"))}, {V(string("hello")), V(MyString("hello"))}, {V(string("hello")), V(string("hello"))}, {V(MyString("hello")), V(MyString("hello"))}, {V(MyString("bytes1")), V([]byte("bytes1"))}, {V([]byte("bytes2")), V(MyString("bytes2"))}, {V([]byte("bytes3")), V([]byte("bytes3"))}, {V(MyString("runes♝")), V([]rune("runes♝"))}, {V([]rune("runes♕")), V(MyString("runes♕"))},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 218.8K bytes - Viewed (0) -
src/internal/types/testdata/check/typeparams.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 01:56:58 UTC 2023 - 15.2K bytes - Viewed (0) -
src/internal/types/testdata/check/expr3.go
_ = c[3 /* ERRORx `index .* out of bounds` */ ] _ = ""[0 /* ERRORx `index .* out of bounds` */ ] _ = c2 _ = s[1<<30] // no compile-time error here // issue 4913 type mystring string var ss string var ms mystring var i, j int ss = "foo"[1:2] ss = "foo"[i:j] ms = "foo" /* ERRORx `cannot use .* in assignment` */ [1:2] ms = "foo" /* ERRORx `cannot use .* in assignment` */ [i:j] _, _ = ss, ms
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 16 22:41:49 UTC 2023 - 15.6K bytes - Viewed (0) -
doc/go_spec.html
float64(-1e-1000) // 0.0 of type float64 string('x') // "x" of type string string(0x266c) // "♬" of type string myString("foo" + "bar") // "foobar" of type myString string([]byte{'a'}) // not a constant: []byte{'a'} is not a constant (*int)(nil) // not a constant: nil is not a constant, *int is not a boolean, numeric, or string type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 21:07:21 UTC 2024 - 281.5K bytes - Viewed (0) -
doc/go1.17_spec.html
float64(-1e-1000) // 0.0 of type float64 string('x') // "x" of type string string(0x266c) // "♬" of type string MyString("foo" + "bar") // "foobar" of type MyString string([]byte{'a'}) // not a constant: []byte{'a'} is not a constant (*int)(nil) // not a constant: nil is not a constant, *int is not a boolean, numeric, or string type
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 211.6K bytes - Viewed (0)