ahelper

package module
v0.0.0-...-a007308 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: MIT Imports: 16 Imported by: 0

README

ahelper

just test

Documentation

Index

Constants

View Source
const Version = "0.0.1"

Variables

View Source
var (
	Time = newTime()

	Http = newHttp()

	Bm = newBianma()

	Jm = newCrypto()

	Osf = newOsf()
)

Functions

This section is empty.

Types

type Bianma

type Bianma struct {
}

func (Bianma) ConvertToString

func (b Bianma) ConvertToString(src string, srcCode string, tagCode string) string

func (Bianma) GbkToUtf8

func (b Bianma) GbkToUtf8(s []byte) ([]byte, error)

func (Bianma) Urldecode

func (b Bianma) Urldecode(u string) string

func (Bianma) Urlencode

func (b Bianma) Urlencode(u string) string

func (Bianma) Utf8ToGbk

func (b Bianma) Utf8ToGbk(s []byte) ([]byte, error)

type Crypto

type Crypto struct {
}

func (Crypto) Md5

func (c Crypto) Md5(str string) string

func (Crypto) Md5_bin

func (c Crypto) Md5_bin(b []byte) string

type Http_an

type Http_an struct{}

func (Http_an) Request

func (h Http_an) Request(url string, ops ...Option) (*Resp_an, error)

type Option

type Option struct {
	// contains filtered or unexported fields
}

func WithHeaders

func WithHeaders(headers string) Option

func WithPostData

func WithPostData(post string) Option

func WithProxy

func WithProxy(proxy proxy) Option

type Osf_an

type Osf_an struct{}

func (Osf_an) Getpath_exe

func (o Osf_an) Getpath_exe() string

取运行目录

func (Osf_an) Htmltrim

func (o Osf_an) Htmltrim(src string) string

去除html标签

func (Osf_an) PathExists

func (o Osf_an) PathExists(path string) (bool, error)

func (Osf_an) Printfln

func (o Osf_an) Printfln(format string, a ...interface{})

type Resp_an

type Resp_an struct {
	Body      []byte
	Str       string
	Cookies   string
	ReloadUrl string
}

type Time_an

type Time_an struct {
}

func (Time_an) Stamp_10

func (t Time_an) Stamp_10() string

func (Time_an) Stamp_13

func (t Time_an) Stamp_13() string

Jump to

Keyboard shortcuts

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