code: func FormatMemberName(name string) string {
  	re := regexp.MustCompile(`[^a-zA-Z0-9_]+`)
  	name = re.ReplaceAllString(name, "_")
  	name = strings.TrimFunc(name, func(r rune) bool {
  		return r == '_'
  	})
  	return name
  }
docs: // FormatMemberName formats any given input string to conform to the JSONAPI
  // member names (see http://jsonapi.org/format/#document-member-names) by
  // replacing everything that is not a letter, a digit, or an underscore with an
  // underscore. Then any leading or trailing underscores are removed.