concept kind in category go
appears as: kind, kinds, kind

This is an excerpt from Manning's book Go in Practice.
The next listing shows a basic implementation of the kind of server illustrated in figure 4.3. It functions as a basic echo server. When you run it, you can connect to it on port 1026 and send a plain line of text. The remote server will echo that text back to you.
Kinds are particularly interesting in this case. Some kinds, notably slices, arrays, maps, and structs, may have members. In this case, you’re interested mainly in learning about the structure of your given value (u). Although you wouldn’t need to enumerate the values in maps, slices, or arrays, you’d like to examine structs. If the kind is reflect.Struct, you take a look at that struct’s fields.