June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package tags import "reflect" // SerializeStructStrings converts a struct // to our custom serialization format // it honors serialize struct tags for string types func SerializeStructStrings(s interface{}) (string, error) { result := "" // reflect the interface into // a type r := reflect.TypeOf(s) value := reflect.ValueOf(s) // if a pointer to a struct is passed // in, handle ...