utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: MIT Imports: 8 Imported by: 12

Documentation

Index

Constants

View Source
const (
	Ellipsis = "..."
)

Variables

This section is empty.

Functions

func BatchString added in v0.0.3

func BatchString(batchSize int, strings ...string) [][]string

func ContainEllipsis added in v0.0.4

func ContainEllipsis(str string) bool

func EllipsisCentral added in v0.0.3

func EllipsisCentral(str string, limit int) string

func Hostname

func Hostname() string

func Round

func Round(num float64) int

func RoundUnit

func RoundUnit(x, unit float64) float64

func Scheduler

func Scheduler(ctx context.Context, tick time.Duration, shift time.Duration) <-chan time.Time

func SplitEllipsis added in v0.0.4

func SplitEllipsis(str string) []string

func ToFixed

func ToFixed(num float64, precision int) float64

Types

This section is empty.

Directories

Path Synopsis
shellexec provide functions for executing any program or script.
shellexec provide functions for executing any program or script.

Jump to

Keyboard shortcuts

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