utils

package
v0.0.0-...-11bee1b Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BUVID = flag.String("buvid", "", "BUVID[required]")
View Source
var IsDebug = flag.Bool("debug", false, "是否开启调试(打印更多日志)")
View Source
var RoomID = flag.Int("roomID", 0, "直播间ID[required]")
View Source
var SESSDATA = flag.String("SESSDATA", "", "SESSDATA[required]")
View Source
var UID = flag.Int64("uid", 0, "用户UID[required]")

Functions

func GetInt64

func GetInt64(i interface{}) *int64

func GetString

func GetString(i interface{}) *string

func Hex

func Hex(bytes []byte) string

func InitFlags

func InitFlags() bool

func PanicIfNotNil

func PanicIfNotNil(err error)

Types

type Decoder

type Decoder struct {
}

func DefaultDecoder

func DefaultDecoder() *Decoder

func (*Decoder) Decode

func (d *Decoder) Decode(v any) []byte

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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