github.com/m4gshm/gollections@v0.0.13-0.20240331203319-a34a86e58a24/internal/examples/mapexamples/data_users_test.go (about)

     1  package mapexamples
     2  
     3  var bob = &User{name: "Bob", age: 26}
     4  
     5  // see the User structure above
     6  var userRefs = map[string][]*User{
     7  	"admin":   {bob},
     8  	"manager": {bob, {name: "Alice", age: 35}},
     9  	"":        {{name: "Tom", age: 18}},
    10  	"cto":     {{name: "Chris", age: 41}},
    11  }