library

package
v0.0.0-...-ed80723 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientIp

func GetClientIp() string

func MapToXml

func MapToXml(params Params) string

func Wordwrap

func Wordwrap(str string, width uint, br string, cut bool) string

Types

type Params

type Params map[string]string

func XmlToMap

func XmlToMap(xmlStr string) Params

------------其他相关

func (Params) Combine

func (p Params) Combine(def Params)

func (Params) ContainsKey

func (p Params) ContainsKey(key string) bool

ContainsKey 判断key是否存在

func (Params) Copy

func (p Params) Copy() Params

func (Params) Delete

func (p Params) Delete(keys ...string)

func (Params) GetInt64

func (p Params) GetInt64(k string) int64

func (Params) GetString

func (p Params) GetString(k string) string

func (Params) Keys

func (p Params) Keys() []string

func (Params) Only

func (p Params) Only(keys []string) Params

func (Params) SetInt64

func (p Params) SetInt64(k string, i int64) Params

func (Params) SetString

func (p Params) SetString(k, s string) Params

func (Params) Sign

func (p Params) Sign(key string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL