Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 720 for Stringer (0.28 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. 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)
  7. src/crypto/tls/common_string.go

    // Code generated by "stringer -linecomment -type=SignatureScheme,CurveID,ClientAuthType -output=common_string.go"; DO NOT EDIT.
    
    package tls
    
    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[PKCS1WithSHA256-1025]
    	_ = x[PKCS1WithSHA384-1281]
    	_ = x[PKCS1WithSHA512-1537]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  8. internal/grid/debugmsg_string.go

    // Code generated by "stringer -type=debugMsg debug.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[debugShutdown-0]
    	_ = x[debugKillInbound-1]
    	_ = x[debugKillOutbound-2]
    	_ = x[debugWaitForExit-3]
    	_ = x[debugSetConnPingDuration-4]
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types/algkind_string.go

    // Code generated by "stringer -type AlgKind -trimprefix A alg.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[AUNK-0]
    	_ = x[ANOEQ-1]
    	_ = x[ANOALG-2]
    	_ = x[AMEM-3]
    	_ = x[AMEM0-4]
    	_ = x[AMEM8-5]
    	_ = x[AMEM16-6]
    	_ = x[AMEM32-7]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 15:30:00 UTC 2024
    - 1K bytes
    - Viewed (0)
  10. src/html/template/context.go

    // HTML attribute produced by
    //
    //	<div title="Hello {{.World}}">
    //
    // is a single token in HTML's grammar but in a template spans several nodes.
    type state uint8
    
    //go:generate stringer -type state
    
    const (
    	// stateText is parsed character data. An HTML parser is in
    	// this state when its parse position is outside an HTML tag,
    	// directive, comment, and special element body.
    	stateText state = iota
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 16 03:29:27 UTC 2023
    - 9.4K bytes
    - Viewed (0)
Back to top