- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for notstringer (0.17 sec)
-
src/cmd/vet/testdata/print/print.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 09 01:28:01 UTC 2023 - 27.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/formatting.go
import ( "fmt" fcfmt "k8s.io/apiserver/pkg/util/flowcontrol/format" ) var _ fmt.GoStringer = RequestDigest{} // GoString produces a golang source expression of the value. func (rd RequestDigest) GoString() string { return fmt.Sprintf("RequestDigest{RequestInfo: %#+v, User: %#+v}", rd.RequestInfo, rd.User) } var _ fmt.GoStringer = (*priorityLevelState)(nil) // GoString produces a golang source expression of the value.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 11 03:54:40 UTC 2020 - 1.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/PropertyAccessorTypeTest.groovy
expect: bean.notBoolean == true try { bean.notString assert false } catch (MissingPropertyException e) { assert e.property == "notString" } PropertyAccessorType.fromName('isNotBoolean') == PropertyAccessorType.IS_GETTER
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 10.8K bytes - Viewed (0) -
src/vendor/golang.org/x/net/dns/dnsmessage/message.go
} return printUint16(uint16(c)) } // GoString implements fmt.GoStringer.GoString. func (c Class) GoString() string { if n, ok := classNames[c]; ok { return "dnsmessage." + n } return printUint16(uint16(c)) } // An OpCode is a DNS operation code. type OpCode uint16 // GoString implements fmt.GoStringer.GoString. func (o OpCode) GoString() string { return printUint16(uint16(o)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Mar 09 00:09:40 UTC 2024 - 69K bytes - Viewed (0) -
src/runtime/testdata/testprog/crash.go
panic(exampleError{}) } func DoubleErrorPanic() { panic(examplePanicError{}) } type exampleStringer struct{} func (s exampleStringer) String() string { panic("important multi-line\nstringer message") } func StringerPanic() { panic(exampleStringer{}) } type examplePanicStringer struct{} func (s examplePanicStringer) String() string { panic(exampleStringer{}) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 19:10:41 UTC 2024 - 2.5K bytes - Viewed (0) -
src/fmt/gostringer_example_test.go
City string State string Country string } // Person has a Name, Age and Address. type Person struct { Name string Age uint Addr *Address } // GoString makes Person satisfy the GoStringer interface. // The return value is valid Go code that can be used to reproduce the Person struct. func (p Person) GoString() string { if p.Addr != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 06 04:25:17 UTC 2018 - 1.5K bytes - Viewed (0) -
src/fmt/print.go
// such as [Print]. type Stringer interface { String() string } // GoStringer is implemented by any value that has a GoString method, // which defines the Go syntax for that value. // The GoString method is used to print values passed as an operand // to a %#v format. type GoStringer interface { GoString() string } // FormatString returns a string representing the fully qualified formatting
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:22:43 UTC 2024 - 31.8K bytes - Viewed (0) -
src/fmt/doc.go
be invoked. In this case the interpretation of verbs and flags is controlled by that implementation. 3. If the %v verb is used with the # flag (%#v) and the operand implements the [GoStringer] interface, that will be invoked. If the format (which is implicitly %v for [Println] etc.) is valid for a string (%s %q %x %X), or is %v but not %#v, the following two rules apply:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:56:20 UTC 2024 - 14.6K bytes - Viewed (0) -
src/runtime/crash_test.go
Want string Func string }{ { "panic while printing panic value: important multi-line\n\terror message", "ErrorPanic", }, { "panic while printing panic value: important multi-line\n\tstringer message", "StringerPanic", }, { "panic while printing panic value: type", "DoubleErrorPanic", }, { "panic while printing panic value: type", "DoubleStringerPanic", },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 19:46:10 UTC 2024 - 27K bytes - Viewed (0) -
src/fmt/fmt_test.go
{"%v", renamedComplex64(3 + 4i), "(3+4i)"}, {"%v", renamedComplex128(4 - 3i), "(4-3i)"}, // Formatter {"%x", F(1), "<x=F(1)>"}, {"%x", G(2), "2"}, {"%+v", S{F(4), G(5)}, "{F:<v=F(4)> G:5}"}, // GoStringer {"%#v", G(6), "GoString(6)"}, {"%#v", S{F(7), G(8)}, "fmt_test.S{F:<v=F(7)>, G:GoString(8)}"}, // %T {"%T", byte(0), "uint8"}, {"%T", reflect.ValueOf(nil), "reflect.Value"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0)