Documentation
¶
Overview ¶
Package util defines various functions and types which are useful throughout the program
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrettyPrintStruct ¶
func PrettyPrintStruct(a interface{})
PrettyPrintStruct prints a nice looking version of a struct
Types ¶
type MacAddress ¶
type MacAddress struct {
Address string `gorm:"not null;unique;primaryKey;"`
}
MacAddress is a structure containing the unique Mac Address
func (MacAddress) GormDataType ¶
func (mac MacAddress) GormDataType() string
GormDataType defines the datatype that a mac address is stored as
func (*MacAddress) Scan ¶
func (mac *MacAddress) Scan(v interface{}) error
Scan defines how the stored data is converted into a string
type ProgressReporter ¶
ProgressReporter is a struct which contains a reader which records the progress made Idea and basic implementation taken from: https://stackoverflow.com/questions/26050380/go-tracking-post-request-progress
Click to show internal directories.
Click to hide internal directories.