- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GoStringer (0.1 sec)
-
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) -
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)