Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for structtag (0.12 sec)

  1. src/reflect/all_test.go

    	if gotA != wantA || gotB != wantB {
    		t.Errorf("function called with (%v, %v), want (%v, %v)", gotA, gotB, wantA, wantB)
    	}
    }
    
    var tagGetTests = []struct {
    	Tag   StructTag
    	Key   string
    	Value string
    }{
    	{`protobuf:"PB(1,2)"`, `protobuf`, `PB(1,2)`},
    	{`protobuf:"PB(1,2)"`, `foo`, ``},
    	{`protobuf:"PB(1,2)"`, `rotobuf`, ``},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    which becomes an attribute for all the fields in the corresponding
    field declaration. An empty tag string is equivalent to an absent tag.
    The tags are made visible through a <a href="/pkg/reflect/#StructTag">reflection interface</a>
    and take part in <a href="#Type_identity">type identity</a> for structs
    but are otherwise ignored.
    </p>
    
    <pre>
    struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
Back to top