Documentation ¶
Overview ¶
* Copyright 2020-2021 the original author(https://github.com/wj596) * * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * </p>
Index ¶
- func Camel2Case(name string) string
- func Case2Camel(name string) string
- func CommasToMap(base string, sep string) map[string]interface{}
- func HmacMD5(plaintext string, key string) string
- func HmacSHA256(plaintext string, key string) string
- func IsChineseChar(str string) bool
- func IsEmailFormat(email string) bool
- func Lcfirst(str string) string
- func MD5(str string) string
- func MapToQueryString(base string, parameters map[string]interface{}) string
- func ToFloat64Safe(str string) float64
- func ToInt64Safe(str string) int64
- func ToIntSafe(str string) int
- func ToJsonBytes(v interface{}) []byte
- func ToJsonIndent(v interface{}) string
- func ToJsonString(v interface{}) string
- func ToString(value interface{}) string
- func ToUint32(str string) (uint32, error)
- func ToUint32Safe(str string) uint32
- func ToUint64Safe(str string) uint64
- func UUID() string
- func Ucfirst(str string) string
- func Uint64ToStr(u uint64) string
- func UrlValuesToQueryString(base string, parameters url.Values) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommasToMap ¶
逗号分隔键值对转MAP,类似"name=wangjie,age=20"或者"name=wangjie|age=20"
func HmacSHA256 ¶
func MapToQueryString ¶
map转查询字符串
func ToFloat64Safe ¶
func ToJsonBytes ¶
func ToJsonBytes(v interface{}) []byte
func ToJsonIndent ¶
func ToJsonIndent(v interface{}) string
func ToJsonString ¶
func ToJsonString(v interface{}) string
func ToUint32Safe ¶
Types ¶
This section is empty.