Documentation ¶
Index ¶
- func BoolPtr(b bool) *bool
- func BoolYNString(b bool) string
- func BoolYesNoString(b bool) string
- func DurationStringToSeconds(s string) (int, error)
- func EmptyByteSliceNil(b []byte) []byte
- func Float32Ptr(f float32) *float32
- func IntDefault(i int, defaultValue int) int
- func IntPtr(i int) *int
- func MapNoEmptyValues(v any) error
- func SecondsToDurationString(seconds int, layout string) string
- func SplitEmptyStringSliceEmpty(s string, sep string) []string
- func SplitEmptyStringSliceNil(s string, sep string) []string
- func StringDefault(s string, defaultValue string) string
- func StringPtr(s string) *string
- func StructTags(key string, v any) []string
- func TruncateString(s string, length int, suffix string) string
- type Semaphore
- type Semaphores
- func (s *Semaphores) Acquire(name string) error
- func (s *Semaphores) Add(name string, maximum int, timeout int)
- func (s *Semaphores) P(name string) error
- func (s *Semaphores) Release(name string) error
- func (s *Semaphores) Signal(name string) error
- func (s *Semaphores) V(name string) error
- func (s *Semaphores) Wait(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolYNString ¶
func BoolYesNoString ¶
func EmptyByteSliceNil ¶
func Float32Ptr ¶
func IntDefault ¶
func MapNoEmptyValues ¶ added in v0.1.2
func SecondsToDurationString ¶
func StringDefault ¶
func StructTags ¶
Types ¶
type Semaphores ¶
type Semaphores struct {
// contains filtered or unexported fields
}
func NewSemaphores ¶
func NewSemaphores() Semaphores
func (*Semaphores) Acquire ¶
func (s *Semaphores) Acquire(name string) error
func (*Semaphores) P ¶
func (s *Semaphores) P(name string) error
func (*Semaphores) Release ¶
func (s *Semaphores) Release(name string) error
func (*Semaphores) Signal ¶
func (s *Semaphores) Signal(name string) error
func (*Semaphores) V ¶
func (s *Semaphores) V(name string) error
func (*Semaphores) Wait ¶
func (s *Semaphores) Wait(name string) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.