util

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2019 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandPath

func ExpandPath(path string) (string, error)

ExpandPath expands a relative path to a absolute path.

func GenID

func GenID(size int) string

GenID : TODO

func GetMacAddr

func GetMacAddr() []string

GetMacAddr get a mac address from interfaces. If device has multiple interfaces, this method returns mac address of first interfaces.

func ToHash

func ToHash(str string) (hash string)

ToHash create hash from device name and secret.

Types

This section is empty.

Jump to

Keyboard shortcuts

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