part

package module
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 26 Imported by: 7

README

part

test PkgGoDev


LICENSE

使用了以下项目,十分感谢


介绍

自己编写/收集的一些go组件,增加复用

buf map变量的save,load,get,set

get 爬虫

session 会话(超时)验证

msgq 消息队列

...

Documentation

Index

Constants

View Source
const (
	ErrorMsg = iota
	AcceptMsg
	PortMsg
)

Variables

This section is empty.

Functions

func Checkfile

func Checkfile() *checkfile

func Exec

func Exec() *lexec

func File

func File() *file

func FileMove added in v0.3.36

func FileMove(src, trg string) error

func Forward added in v0.3.36

func Forward(targetaddr, targetnetwork *string, listenaddr string) (closef func(), msg_chan chan ForwardMsg)

func Json

func Json() *json

func Logf

func Logf() *logl

func MasterDomain added in v0.3.36

func MasterDomain(url_s string) (string, error)

func Md5

func Md5() *md5l

func Net

func Net() *netl

func RZip

func RZip() *rZip

func Rand

func Rand() *random

func Zip

func Zip() *lzip

Types

type Filel

type Filel struct {
	File    string //src
	Loc     int64  //WriteOrRead loc ;0:rewrite Or read all;-1 write on end
	ReadNum int64
	Context []interface{} //Write string

	// wrap with encoder/decoder
	//https://pkg.go.dev/golang.org/x/text/encoding
	WrapWriter func(io.Writer) io.Writer
	// contains filtered or unexported fields
}

func (Filel) Write

func (t Filel) Write(b []byte) (int, error)

func (t Filel) Read(b []byte)(int,error){return t.read(b)}

type ForwardMsg added in v0.3.36

type ForwardMsg struct {
	Type int
	Msg  interface{}
}

when Type is ErrorMsg, Msg is set to error when Type is AcceptMsg, Msg is set to nil when Type is PortMsg, Msg is set to Listen Port(int)

Jump to

Keyboard shortcuts

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