common

package
v0.0.0-...-3dda064 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSVFileNameRepair

func CSVFileNameRepair(pathfile string) string

func GetRandomString

func GetRandomString(l int) string

func OutPutCsv

func OutPutCsv(filename string, in []string)

输出内容in到csv文件

func PathExists

func PathExists(path string) (bool, error)

判断文件是否存在

Types

type Queue

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

先进先出队列

func NewQueue

func NewQueue() *Queue

工厂函数 生成 `先进先出队列`

func (*Queue) Clear

func (q *Queue) Clear()

func (*Queue) Get

func (q *Queue) Get() (interface{}, bool)

出队操作

func (*Queue) IsEmpty

func (q *Queue) IsEmpty() bool

判断队列是否为空

func (*Queue) Put

func (q *Queue) Put(v interface{})

入队操作

func (*Queue) Qsize

func (q *Queue) Qsize() int

返回队列长度

Jump to

Keyboard shortcuts

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