atcs

package
v0.0.0-...-46db650 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArrPair

type ArrPair struct {
	First  []interface{}
	Second []interface{}
}

ArrPair 成对的数组

type Atcs

type Atcs map[string]interface{}

Atcs int 的包装

func (Atcs) Add

func (m Atcs) Add(_key, _value interface{}) interface{}

Add 加法

func (Atcs) Arr

func (m Atcs) Arr(value ...interface{}) []interface{}

Arr 组成数组

func (Atcs) At

func (m Atcs) At(_arr, _index interface{}) interface{}

At 取Item

func (Atcs) Cut

func (m Atcs) Cut(_arr, _width interface{}) ArrPair

Cut 比如10,5

func (Atcs) F2i

func (m Atcs) F2i(value interface{}) int

F2i float转int

func (Atcs) Get

func (m Atcs) Get(_key interface{}) interface{}

Get 设置

func (Atcs) GetAPI

func (a Atcs) GetAPI(api string) map[string]interface{}

GetAPI GetAPI

func (Atcs) GetBody

func (a Atcs) GetBody(url string) template.HTML

GetBody GetBody

func (Atcs) In

func (m Atcs) In(_arr interface{}, val interface{}) bool

In 是否在

func (Atcs) IsEnd

func (m Atcs) IsEnd(_index, _width interface{}) bool

IsEnd 是否在结束的地方

func (Atcs) IsIOS

func (m Atcs) IsIOS() bool

IsIOS 是否为Ios上浏览器

func (Atcs) IsMobile

func (m Atcs) IsMobile() bool

IsMobile 是否为手机浏览器

func (Atcs) IsWeixin

func (m Atcs) IsWeixin() bool

IsWeixin 是否为微信浏览器

func (Atcs) JSONBase64

func (m Atcs) JSONBase64(o interface{}) string

JSONBase64 JSONBase64

func (Atcs) JSONToArr

func (m Atcs) JSONToArr(_str interface{}) []interface{}

JSONToArr 从json获得数组

func (Atcs) JSONToMap

func (m Atcs) JSONToMap(_str interface{}) map[string]interface{}

JSONToMap 从json获得map

func (Atcs) Len

func (m Atcs) Len(_arr interface{}) int

Len 数组长度

func (Atcs) Map

func (m Atcs) Map(values ...interface{}) map[string]interface{}

Map 创建

func (Atcs) NotIn

func (m Atcs) NotIn(_arr interface{}, val interface{}) bool

NotIn 不在

func (Atcs) Others

func (m Atcs) Others(_arr, _width interface{}) []int

Others 比如10,5

func (Atcs) PostAPI

func (a Atcs) PostAPI(api string, params string) map[string]interface{}

PostAPI PostAPI

func (Atcs) Ref

func (m Atcs) Ref(_path interface{}) template.HTML

Ref 引入模块

func (Atcs) Set

func (m Atcs) Set(_key, value interface{}) interface{}

Set 设置

func (Atcs) SetTo

func (m Atcs) SetTo(o map[string]interface{}, _key, value interface{}) interface{}

SetTo 设置到map上

func (Atcs) Ter

func (m Atcs) Ter(c bool, a, b interface{}) interface{}

Ter 三目运算

Jump to

Keyboard shortcuts

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