Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestTagParsing (0.1 sec)

  1. src/encoding/json/tags_test.go

    // Copyright 2011 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.
    
    package json
    
    import (
    	"testing"
    )
    
    func TestTagParsing(t *testing.T) {
    	name, opts := parseTag("field,foobar,foo")
    	if name != "field" {
    		t.Fatalf("name = %q, want field", name)
    	}
    	for _, tt := range []struct {
    		opt  string
    		want bool
    	}{
    		{"foobar", true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 16:00:37 UTC 2023
    - 583 bytes
    - Viewed (0)
Back to top