Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleKeyValueTopDecl (0.26 sec)

  1. src/go/doc/testdata/examples/multiple.go

    	f := flag.Flag{
    		Name: "play",
    	}
    	fmt.Print(f)
    	// Output: Name: "play"
    }
    
    var keyValueTopDecl = struct {
    	a string
    	b int
    }{
    	a: "B",
    	b: 2,
    }
    
    func ExampleKeyValueTopDecl() {
    	fmt.Print(keyValueTopDecl)
    	// Output: a: "B", b: 2
    }
    
    // Person represents a person by name and age.
    type Person struct {
    	Name string
    	Age  int
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 16:17:51 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top