utils

package
v1.8.35 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InvalidVersion = "0.0.0"
)

Variables

View Source
var (
	ErrAccelerationNotSupported = errors.New("acceleration not supported on this platform")
)

Functions

func BoolIndexOf added in v0.7.8

func BoolIndexOf(s pandas.Series, n int) bool

func CurrentVersion added in v1.8.24

func CurrentVersion() string

CurrentVersion 开发中获取版本号

func Float64IndexOf added in v0.8.1

func Float64IndexOf(s pandas.Series, n int) float64

func GetPages added in v0.7.8

func GetPages(pageSize, count int) (pages int)

GetPages 计算页数

func IndexReverse added in v0.7.8

func IndexReverse(s pandas.Series) pandas.Series

func Int64IndexOf added in v0.8.1

func Int64IndexOf(s pandas.Series, n int) int64

func IntegerIndexOf added in v0.7.8

func IntegerIndexOf(s pandas.Series, n int) int

func Optimize added in v0.7.8

func Optimize()

Optimize 系统优化系列

func RequireVersion added in v1.8.24

func RequireVersion(module string) string

RequireVersion 依赖模块版本号

通过 go list -m 命令获取

func SeriesChangeRate added in v0.7.8

func SeriesChangeRate(base, v pandas.Series) pandas.Series

SeriesChangeRate 计算两个序列的净增长

func SeriesIndexOf deprecated added in v0.7.8

func SeriesIndexOf(s pandas.Series, n int) float64

SeriesIndexOf 获取序列第n索引的值

Deprecated: 推荐使用 Float64IndexOf

func StringIndexOf added in v0.7.8

func StringIndexOf(s pandas.Series, n int) string

func Timestamp added in v0.7.8

func Timestamp() (timestamp int64)

Timestamp 毫秒时间戳

Types

type Client added in v1.8.24

type Client interface {
	CanExec() error
	Exec(string, ...string) (string, error)
	InsideWorkTree() error
}

Client of git command

func NewGit added in v1.8.24

func NewGit(config *Config) Client

NewGit git command client

type Config added in v1.8.24

type Config struct {
	Bin string // default "git"
}

Config for git command

Jump to

Keyboard shortcuts

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