goactivesupport

package module
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: MIT Imports: 10 Imported by: 0

README

goactivesupport

Maintainability

REST package


Tests

make test

Benchmark

go test -v -run="none" -bench=. -benchtime="3s" -benchmem
goos: darwin
goarch: amd64
BenchmarkNumberToStrFast-4      100000000               33.6 ns/op             5 B/op          1 allocs/op
BenchmarkSprintf-4              44198298                80.9 ns/op             5 B/op          1 allocs/op

Documentation

Index

Constants

View Source
const (
	KB = 1 << (10 * iota)
	MB
	GB
	TB
	PG
	EB
	ZB
	YB
)

Scope: Numbers

View Source
const (
	Version = "1.2.2"
)

Variables

This section is empty.

Functions

func BcyptHashStr added in v0.1.8

func BcyptHashStr(str string) (string, error)

Scope: Strings

func FileLineCount

func FileLineCount(filepath string) (int, error)

func GetFileLogger

func GetFileLogger(path string) *log.Logger

Scope: Logging

func GetenvDv

func GetenvDv(k string, dv interface{}) (interface{}, error)

Scope: OS Return default value if given environment variable is blank

func MethodName added in v0.1.7

func MethodName(m interface{}) string

Scope: Methods

func NumberToHumanSize

func NumberToHumanSize(n float64) string

func NumberToStrFast added in v0.1.4

func NumberToStrFast(n interface{}) string

func ReadFile

func ReadFile(path string) string

func StrValidLuhnCreditCardNumber added in v1.2.2

func StrValidLuhnCreditCardNumber(str string) bool

func WriteFile

func WriteFile(path, msg string)

Types

This section is empty.

Directories

Path Synopsis
Scope: REST
Scope: REST

Jump to

Keyboard shortcuts

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