tools

package
v0.0.0-...-1830482 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMac

func GetMac() (addr string)

GetMac return current mac address

func GetNetworkInfo

func GetNetworkInfo() (addr, ip string)

GetNetworkInfo return current ip and mac address

func IntInSlice

func IntInSlice(a int, list []int) bool

IntInSlice check if integer is present in the list

func Model2Type

func Model2Type(model string) string

Model2Type convert model in device type

func StringInSlice

func StringInSlice(a string, list []string) bool

StringInSlice check if integer is present in the list

func ToJSON

func ToJSON(elt interface{}) (string, error)

ToJSON dump struct in json

Types

This section is empty.

Jump to

Keyboard shortcuts

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