util

package
v0.0.0-...-722fbe6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLines

func GetLines(filename string) (out []string, err error)

func IsUint16InList

func IsUint16InList(code uint16, list []uint16) bool

func NewLogger

func NewLogger(filename string, std bool) *log.Logger

Types

type Shuffle

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

func NewShuffle

func NewShuffle(size uint64) *Shuffle

NewShuffle 局部乱序

func (*Shuffle) Get

func (sf *Shuffle) Get(index uint64) uint64

Get 根据索引获取转换后的索引值

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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