utils

package
v0.0.0-...-a4d7051 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LongDelay = 1800
)

Variables

This section is empty.

Functions

func ArrayToStack

func ArrayToStack(array []string) *list.List

func BasicReceiver

func BasicReceiver(resp *http.Response, err error)

func CheckCurlyBraces

func CheckCurlyBraces(str string) bool

CheckCurlyBraces 查看文本中是否有花括号

func Delay

func Delay(waitingSeed int) <-chan time.Time

func ExtractContent

func ExtractContent(str string) []string

ExtractContent 提取内容, 根据空格分割, 有引号保护除外

func MiddleInt

func MiddleInt(msg0 string, num int, msg1 string) string
func PopUp(list *list.List) string

func SingleBackInt

func SingleBackInt(msg0 string, num int) string

func SingleFrontInt

func SingleFrontInt(num int, msg0 string) string

Types

type JsonData

type JsonData struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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