摘要: func StructToMap(v interface{}) (map[string]interface{}, error) { values := map[string]interface{}{} bytes, err := json.Marshal(v) if err != nil { ret 阅读全文
posted @ 2022-11-18 13:08 耀耀王 阅读(21) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "regexp" "strings" ) var matchNonAlphaNumeric = regexp.MustCompile(`[^a-zA-Z0-9]+`) var matchFirstCap = regexp.MustCompile 阅读全文
posted @ 2022-11-18 11:29 耀耀王 阅读(494) 评论(0) 推荐(0) 编辑