utils

package
v0.0.0-...-30bf5e9 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsDebug = flag.Bool("debug", false, "是否开启调试(打印更多日志)")
View Source
var RoomID = flag.Int("roomID", 0, "直播间ID[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