utils

package
v1.1.16 Latest Latest
Warning

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

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

Documentation

Overview

Package utils implements some utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertIdentifier

func ConvertIdentifier(s string) string

func IsDigit

func IsDigit(b byte) bool

func IsHexDigit

func IsHexDigit(b byte) bool

func IsInteger

func IsInteger(s string) bool

func IsUnsignedInteger

func IsUnsignedInteger(s string) bool

func RelativePathBaseOn

func RelativePathBaseOn(basePath, filePath string) string

RelativePathBaseOn changes relative path base on the basePath

Types

type WaitGroupMap

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

func NewWaitGroups

func NewWaitGroups() *WaitGroupMap

func (*WaitGroupMap) Add

func (w *WaitGroupMap) Add(delta int, key string)

func (*WaitGroupMap) AddMany

func (w *WaitGroupMap) AddMany(delta int, keys ...string)

func (*WaitGroupMap) Done

func (w *WaitGroupMap) Done(key string)

func (*WaitGroupMap) DoneMany

func (w *WaitGroupMap) DoneMany(keys ...string)

func (*WaitGroupMap) Wait

func (w *WaitGroupMap) Wait(key string)

func (*WaitGroupMap) WaitMany

func (w *WaitGroupMap) WaitMany(keys ...string)

Jump to

Keyboard shortcuts

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