goutils

package module
v0.0.0-...-876b447 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: MIT Imports: 7 Imported by: 0

README

go-utils

some golang utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b []byte) string

BytesToString convert []byte to string

func CompareObj

func CompareObj(v1, v2 interface{}) (result bool, err error)

CompareObj used to compare between v1 and v2. If the bytes of them is same, return true.

func DeepCopy

func DeepCopy(v1, v2 interface{}) error

DeepCopy used to copy object v1 to v2

func Round

func Round(f float64, n int) float64

Round keep n bits decimals

func Stack

func Stack(skip int) []byte

stack returns a nicely formatted stack frame, skipping skip frames.

func StringToBytes

func StringToBytes(s string) []byte

StringToBytes convert string to []byte

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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