摘要:
func StructToMap(v interface{}) (map[string]interface{}, error) { values := map[string]interface{}{} bytes, err := json.Marshal(v) if err != nil { ret 阅读全文
摘要:
package main import ( "fmt" "regexp" "strings" ) var matchNonAlphaNumeric = regexp.MustCompile(`[^a-zA-Z0-9]+`) var matchFirstCap = regexp.MustCompile 阅读全文