util

package
Version: v0.0.0-...-602244f Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

CheckError panic if err is not nil

func GenerateID

func GenerateID() string

GenerateID generate an unique id based on UUIDv4

func Logger

func Logger() *log.Logger

Logger return main logger instance

func MapToStruct

func MapToStruct(s interface{}, m map[string]dbus.Variant) error

MapToStruct converts a map[string]interface{} to a struct

func NewLogger

func NewLogger(name string) (*log.Logger, error)

NewLogger return a new instance of a logger

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL