Documentation
¶
Index ¶
- Constants
- func Black(str interface{}) string
- func Blue(str interface{}) string
- func Cyan(str interface{}) string
- func DelRepeat(str string, ch string) string
- func FmtDate(time time.Time, fmt string) string
- func Green(str interface{}) string
- func IfStr(ok bool, v1 string, v2 string) string
- func InArrayInt(arr []int, ele int) bool
- func InArrayString(arr []string, ele string) bool
- func IsWindows() bool
- func Magenta(str interface{}) string
- func ParseUrlParam(url string) map[string]string
- func ReadText(path string) (string, error)
- func Red(str interface{}) string
- func StartProxy()
- func Trim(str string) string
- func White(str interface{}) string
- func WriteText(text string, path string) error
- func Yellow(str interface{}) string
- type JsonArray
- type JsonObject
- type JsonParser
- type Stack
Constants ¶
View Source
const ( TextBlack = iota + 30 TextRed TextGreen TextYellow TextBlue TextMagenta TextCyan TextWhite )
Variables ¶
This section is empty.
Functions ¶
func InArrayInt ¶
func InArrayString ¶
func ParseUrlParam ¶
func StartProxy ¶
func StartProxy()
Types ¶
type JsonArray ¶
type JsonArray struct {
// contains filtered or unexported fields
}
func (*JsonArray) ForEach ¶
func (obj *JsonArray) ForEach(fn func(int, *JsonObject))
func (*JsonArray) ForEachArray ¶
func (*JsonArray) GetObject ¶
func (obj *JsonArray) GetObject(i int) *JsonObject
type JsonObject ¶
type JsonObject struct {
// contains filtered or unexported fields
}
func NewJsonObject ¶
func NewJsonObject(str string) *JsonObject
func (*JsonObject) Get ¶
func (obj *JsonObject) Get(key string) interface{}
func (*JsonObject) GetArray ¶
func (obj *JsonObject) GetArray(key string) *JsonArray
func (*JsonObject) GetObject ¶
func (obj *JsonObject) GetObject(key string) *JsonObject
type JsonParser ¶
type JsonParser struct {
// contains filtered or unexported fields
}
func Json ¶
func Json(m map[string]interface{}) *JsonParser
func (*JsonParser) Get ¶
func (json *JsonParser) Get(key string) interface{}
Click to show internal directories.
Click to hide internal directories.