- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 1,041 for Stringer (0.14 sec)
-
test/typeparam/stringable.go
// license that can be found in the LICENSE file. package main import ( "fmt" "strconv" "strings" ) type Stringer interface { String() string } // StringableList is a slice of some type, where the type // must have a String method. type StringableList[T Stringer] []T func (s StringableList[T]) String() string { var sb strings.Builder for i, v := range s { if i > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 833 bytes - Viewed (0) -
src/cmd/compile/internal/syntax/tokens.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package syntax type Token uint type token = Token //go:generate stringer -type token -linecomment tokens.go const ( _ token = iota _EOF // EOF // names and literals _Name // name _Literal // literal // operators and operations
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/compile/internal/inline/inlheur/cspropbits_string.go
// Code generated by "stringer -bitset -type CSPropBits"; DO NOT EDIT. package inlheur import "strconv" import "bytes" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[CallSiteInLoop-1] _ = x[CallSiteOnPanicPath-2] _ = x[CallSiteInInitFunc-4] } var _CSPropBits_value = [...]uint64{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 23:03:03 UTC 2023 - 1.2K bytes - Viewed (0) -
src/html/template/state_string.go
// Code generated by "stringer -type state"; DO NOT EDIT. package template import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[stateText-0] _ = x[stateTag-1] _ = x[stateAttrName-2] _ = x[stateAfterName-3] _ = x[stateBeforeValue-4] _ = x[stateHTMLCmt-5] _ = x[stateRCDATA-6]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 02 15:18:39 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/compile/internal/types/kind_string.go
// Code generated by "stringer -type Kind -trimprefix T type.go"; DO NOT EDIT. package types import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[Txxx-0] _ = x[TINT8-1] _ = x[TUINT8-2] _ = x[TINT16-3] _ = x[TUINT16-4] _ = x[TINT32-5] _ = x[TUINT32-6] _ = x[TINT64-7]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:56:38 UTC 2023 - 1.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/util/flowcontrol/format/formatting.go
// objects here are formatted into golang source. // Stringer marks the given value for custom formatting by this package. type Stringer struct{ val interface{} } // Fmt marks the given value for custom formatting by this package. func Fmt(val interface{}) Stringer { return Stringer{val} } // String formats to a string in full detail func (sr Stringer) String() string { if sr.val == nil { return "nil" }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 7.7K bytes - Viewed (0) -
test/fixedbugs/issue19658.go
"bytes" "fmt" "io/ioutil" "log" "os" "os/exec" "path/filepath" ) const fn = ` package main import "errors" type S struct { } func (s S) String() string { return "s-stringer" } func main() { _ = errors.New panic(%s(%s)) } ` func main() { tempDir, err := ioutil.TempDir("", "") if err != nil { log.Fatal(err) } defer os.RemoveAll(tempDir)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:56:32 UTC 2023 - 2.3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/token_string.go
// Code generated by "stringer -type token -linecomment tokens.go"; DO NOT EDIT. package syntax import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[_EOF-1] _ = x[_Name-2] _ = x[_Literal-3] _ = x[_Operator-4] _ = x[_AssignOp-5] _ = x[_IncOp-6] _ = x[_Assign-7]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 29 02:28:24 UTC 2020 - 1.7K bytes - Viewed (0) -
internal/grid/handlers_string.go
// Code generated by "stringer -type=HandlerID -output=handlers_string.go -trimprefix=Handler msg.go handlers.go"; DO NOT EDIT. package grid import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[handlerInvalid-0] _ = x[HandlerLockLock-1] _ = x[HandlerLockRLock-2] _ = x[HandlerLockUnlock-3]
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 4.3K bytes - Viewed (0) -
src/internal/pkgbits/syncmarker_string.go
// Code generated by "stringer -type=SyncMarker -trimprefix=Sync"; DO NOT EDIT. package pkgbits import "strconv" func _() { // An "invalid array index" compiler error signifies that the constant values have changed. // Re-run the stringer command to generate them again. var x [1]struct{} _ = x[SyncEOF-1] _ = x[SyncBool-2] _ = x[SyncInt64-3] _ = x[SyncUint64-4] _ = x[SyncString-5] _ = x[SyncValue-6] _ = x[SyncVal-7]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 11 20:24:07 UTC 2023 - 2.9K bytes - Viewed (0)