utils

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MIT Imports: 6 Imported by: 8

Documentation

Overview

useful function, like UUID, Assert, Trace and more.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assert

func Assert(err error)

Assert panic if err!=nil

func Trace

func Trace(prefix string) []string

Trace get call stack trace

func UUID

func UUID(n int, chars ...string) (string, error)

UUID generate random string with length n, chars of charmap, by default "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_"

Types

This section is empty.

Jump to

Keyboard shortcuts

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