Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 35 for structtag (0.2 sec)

  1. staging/src/k8s.io/apimachinery/pkg/runtime/conversion.go

    }
    
    // JSONKeyMapper uses the struct tags on a conversion to determine the key value for
    // the other side. Use when mapping from a map[string]* to a struct or vice versa.
    func JSONKeyMapper(key string, sourceTag, destTag reflect.StructTag) (string, string) {
    	if s := destTag.Get("json"); len(s) > 0 {
    		return strings.SplitN(s, ",", 2)[0], key
    	}
    	if s := sourceTag.Get("json"); len(s) > 0 {
    		return key, strings.SplitN(s, ",", 2)[0]
    	}
    	return key, key
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Dec 02 09:39:03 UTC 2019
    - 5.2K bytes
    - Viewed (0)
  2. src/cmd/vendor/modules.txt

    golang.org/x/tools/go/analysis/passes/slog
    golang.org/x/tools/go/analysis/passes/stdmethods
    golang.org/x/tools/go/analysis/passes/stdversion
    golang.org/x/tools/go/analysis/passes/stringintconv
    golang.org/x/tools/go/analysis/passes/structtag
    golang.org/x/tools/go/analysis/passes/testinggoroutine
    golang.org/x/tools/go/analysis/passes/tests
    golang.org/x/tools/go/analysis/passes/timeformat
    golang.org/x/tools/go/analysis/passes/unmarshal
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/runtime/swagger_doc_generator.go

    // "-" indicates that this field is not part of the JSON representation
    func fieldName(field *ast.Field) string {
    	jsonTag := ""
    	if field.Tag != nil {
    		jsonTag = reflect.StructTag(field.Tag.Value[1 : len(field.Tag.Value)-1]).Get("json") // Delete first and last quotation
    		if strings.Contains(jsonTag, "inline") {
    			return "-"
    		}
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Aug 03 07:33:58 UTC 2017
    - 7K bytes
    - Viewed (0)
  4. hack/tools/go.mod

    	github.com/dnephin/pflag v1.0.7 // indirect
    	github.com/esimonov/ifshort v1.0.4 // indirect
    	github.com/ettle/strcase v0.2.0 // indirect
    	github.com/fatih/color v1.16.0 // indirect
    	github.com/fatih/structtag v1.2.0 // indirect
    	github.com/firefart/nonamedreturns v1.0.4 // indirect
    	github.com/fsnotify/fsnotify v1.5.4 // indirect
    	github.com/fzipp/gocyclo v0.6.0 // indirect
    	github.com/ghostiam/protogetter v0.3.4 // indirect
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. src/cmd/internal/test2json/testdata/vet.json

    {"Action":"output","Test":"TestVet/0","Output":"    --- PASS: TestVet/0 (0.13s)\n"}
    {"Action":"output","Test":"TestVet/0","Output":"        vet_test.go:114: files: [\"testdata/assign.go\" \"testdata/httpresponse.go\" \"testdata/structtag.go\"]\n"}
    {"Action":"pass","Test":"TestVet/0"}
    {"Action":"output","Test":"TestVet/4","Output":"    --- PASS: TestVet/4 (0.16s)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  6. src/reflect/type.go

    	Type      Type      // field type
    	Tag       StructTag // field tag string
    	Offset    uintptr   // offset within struct, in bytes
    	Index     []int     // index sequence for Type.FieldByIndex
    	Anonymous bool      // is an embedded field
    }
    
    // IsExported reports whether the field is exported.
    func (f StructField) IsExported() bool {
    	return f.PkgPath == ""
    }
    
    // A StructTag is the tag string in a struct field.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/testdata/v1reflect.gox

     func (d <type 29>) String () <type -16>;
    >; IsVariadic () <type -15>; Elem () <type 26>; Field (i <type -11>) <type 30 "StructField" <type 31 struct { Name <type -16>; PkgPath <type -16>; Type <type 26>; Tag <type 32 "StructTag" <type -16>
     func (tag <type 32>) Get (key <type -16>) <type -16>;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 30 21:33:51 UTC 2021
    - 10.3K bytes
    - Viewed (0)
  8. api/go1.7.txt

    pkg os/user, type Group struct, Name string
    pkg os/user, type UnknownGroupError string
    pkg os/user, type UnknownGroupIdError string
    pkg reflect, func StructOf([]StructField) Type
    pkg reflect, method (StructTag) Lookup(string) (string, bool)
    pkg runtime, func CallersFrames([]uintptr) *Frames
    pkg runtime, func KeepAlive(interface{})
    pkg runtime, func SetCgoTraceback(int, unsafe.Pointer, unsafe.Pointer, unsafe.Pointer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 28 15:08:11 UTC 2016
    - 13.6K bytes
    - Viewed (0)
  9. src/cmd/internal/test2json/testdata/smiley.json

    {"Action":"output","Test":"Test☺☹/0","Output":"    --- PASS: Test☺☹/0 (0.13s)\n"}
    {"Action":"output","Test":"Test☺☹/0","Output":"        vet_test.go:114: φιλεσ: [\"testdata/assign.go\" \"testdata/httpresponse.go\" \"testdata/structtag.go\"]\n"}
    {"Action":"pass","Test":"Test☺☹/0"}
    {"Action":"output","Test":"Test☺☹/4","Output":"    --- PASS: Test☺☹/4 (0.16s)\n"}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 09 17:33:07 UTC 2022
    - 12.4K bytes
    - Viewed (0)
  10. src/cmd/vet/vet_test.go

    		"bool",
    		"buildtag",
    		"cgo",
    		"composite",
    		"copylock",
    		"deadcode",
    		"directive",
    		"httpresponse",
    		"lostcancel",
    		"method",
    		"nilfunc",
    		"print",
    		"shift",
    		"slog",
    		"structtag",
    		"testingpkg",
    		// "testtag" has its own test
    		"unmarshal",
    		"unsafeptr",
    		"unused",
    	} {
    		pkg := pkg
    		t.Run(pkg, func(t *testing.T) {
    			t.Parallel()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top