gohacks

package
v14.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gohacks implements all the small things that are needed during programming but not present in Go or its standard library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NumberLength

func NumberLength(number int) int

func ParseBool

func ParseBool(text string) (bool, error)

func TypeName

func TypeName(myvar interface{}) string

TypeName provides the name of the type of the given variable.

Types

type Counter

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

Counter is a Statistics implementation that counts how many commands were run.

func (*Counter) Count

func (self *Counter) Count() int

func (*Counter) Register

func (self *Counter) Register()

Directories

Path Synopsis
Package cache provides infrastructure to cache things in memory.
Package cache provides infrastructure to cache things in memory.
Package slice provides generic functions to work with slices.
Package slice provides generic functions to work with slices.

Jump to

Keyboard shortcuts

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