Documentation ¶
Index ¶
- Constants
- func AssertErrorToNil(message string, err error)
- func BuildLogger(loggerName string, level string)
- func ConvertCookieStrToPlaywrightCookieList(cookieStr string, domain *string) []playwright.OptionalCookie
- func GetBoolFromEnv(key string) (bool, error)
- func GetUserAgent() string
- func MergeMap(m map[string]interface{}, overriddenMap map[string]interface{}) map[string]interface{}
- func OpenImage(absImageFilePath string) error
- func ShowQrcode(base64Image string) error
- type Logger
Constants ¶
View Source
const ( // LevelError 错误 LevelError = iota // LevelWarning 警告 LevelWarning // LevelInformational 提示 LevelInformational // LevelDebug 除错 LevelDebug )
Variables ¶
This section is empty.
Functions ¶
func AssertErrorToNil ¶
AssertErrorToNil common assert err judge err is nil or not
func ConvertCookieStrToPlaywrightCookieList ¶
func ConvertCookieStrToPlaywrightCookieList(cookieStr string, domain *string) []playwright.OptionalCookie
ConvertCookieStrToPlaywrightCookieList convert str cookie to playwright cookie structs
func GetBoolFromEnv ¶
GetBoolFromEnv convert a bool string to type bool
func MergeMap ¶
func MergeMap(m map[string]interface{}, overriddenMap map[string]interface{}) map[string]interface{}
MergeMap Merge two map, the first map have higher priority
Types ¶
Click to show internal directories.
Click to hide internal directories.