Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 866 for Stringer (0.14 sec)

  1. src/cmd/internal/obj/stringer.go

    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    // This is a mini version of the stringer tool customized for the Anames table
    // in the architecture support for obj.
    // This version just generates the slice of strings, not the String method.
    
    package main
    
    import (
    	"bufio"
    	"flag"
    	"fmt"
    	"log"
    	"os"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. test/fixedbugs/issue65808.go

    // license that can be found in the LICENSE file.package main
    
    package main
    
    type Stringer interface {
    	String() string
    }
    
    type (
    	stringer  struct{}
    	stringers [2]stringer
    	foo       struct {
    		stringers
    	}
    )
    
    func (stringer) String() string  { return "" }
    func toString(s Stringer) string { return s.String() }
    
    func (v stringers) toStrings() []string {
    	return []string{toString(v[0]), toString(v[1])}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 02 14:01:52 UTC 2024
    - 562 bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/trace_util.go

    	return []attribute.KeyValue{
    		attribute.Stringer("accept", &lazyAccept{req: req}),
    		attribute.Stringer("audit-id", &lazyAuditID{req: req}),
    		attribute.Stringer("client", &lazyClientIP{req: req}),
    		attribute.Stringer("api-group", &lazyAPIGroup{req: req}),
    		attribute.Stringer("api-version", &lazyAPIVersion{req: req}),
    		attribute.Stringer("name", &lazyName{req: req}),
    		attribute.Stringer("subresource", &lazySubresource{req: req}),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 03 15:25:35 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. test/typeparam/boundmethod.go

    //go:noinline
    func (m myint) String() string {
    	return strconv.Itoa(int(m))
    }
    
    type Stringer interface {
    	String() string
    }
    
    func stringify[T Stringer](s []T) (ret []string) {
    	for _, v := range s {
    		// Test normal bounds method call on type param
    		x1 := v.String()
    
    		// Test converting type param to its bound interface first
    		v1 := Stringer(v)
    		x2 := v1.String()
    
    		// Test method expression with type param type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 25 14:29:30 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  5. cmd/batchjobmetric_string.go

    // Code generated by "stringer -type=batchJobMetric -trimprefix=batchJobMetric batch-handlers.go"; DO NOT EDIT.
    
    package cmd
    
    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[batchJobMetricReplication-0]
    	_ = x[batchJobMetricKeyRotation-1]
    	_ = x[batchJobMetricExpire-2]
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 02 10:51:33 UTC 2023
    - 797 bytes
    - Viewed (0)
  6. cmd/healingmetric_string.go

    // Code generated by "stringer -type=healingMetric -trimprefix=healingMetric erasure-healing.go"; DO NOT EDIT.
    
    package cmd
    
    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[healingMetricBucket-0]
    	_ = x[healingMetricObject-1]
    	_ = x[healingMetricCheckAbandonedParts-2]
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Nov 28 18:20:55 UTC 2022
    - 789 bytes
    - Viewed (0)
  7. src/debug/macho/reloctype_string.go

    // Code generated by "stringer -type=RelocTypeGeneric,RelocTypeX86_64,RelocTypeARM,RelocTypeARM64 -output reloctype_string.go"; DO NOT EDIT.
    
    package macho
    
    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[GENERIC_RELOC_VANILLA-0]
    	_ = x[GENERIC_RELOC_PAIR-1]
    	_ = x[GENERIC_RELOC_SECTDIFF-2]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:24:07 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. internal/grid/msg_string.go

    // Code generated by "stringer -type=Op -output=msg_string.go -trimprefix=Op msg.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[OpConnect-1]
    	_ = x[OpConnectResponse-2]
    	_ = x[OpPing-3]
    	_ = x[OpPong-4]
    	_ = x[OpConnectMux-5]
    	_ = x[OpMuxConnectError-6]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Nov 21 01:09:35 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. src/html/template/jsctx_string.go

    // Code generated by "stringer -type jsCtx"; 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[jsCtxRegexp-0]
    	_ = x[jsCtxDivOp-1]
    	_ = x[jsCtxUnknown-2]
    }
    
    const _jsCtx_name = "jsCtxRegexpjsCtxDivOpjsCtxUnknown"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 04 17:04:36 UTC 2023
    - 635 bytes
    - Viewed (0)
  10. cmd/rebalstatus_string.go

    // Code generated by "stringer -type=rebalStatus -trimprefix=rebal erasure-server-pool-rebalance.go"; DO NOT EDIT.
    
    package cmd
    
    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[rebalNone-0]
    	_ = x[rebalStarted-1]
    	_ = x[rebalCompleted-2]
    	_ = x[rebalStopped-3]
    	_ = x[rebalFailed-4]
    }
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Oct 25 19:36:57 UTC 2022
    - 795 bytes
    - Viewed (0)
Back to top