util

package
v0.0.0-...-1206814 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2015 License: MIT, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GLOBAL_SYSTEM_START int64 = systemStart()

Functions

func ParseStringsIntoStruct

func ParseStringsIntoStruct(vi interface{}, strs []string) error

ParseStringsIntoStruct expects a pointer to a struct as its first argument. It assigns each element from the lines slice sequentially to the struct members, parsing each according to type. It currently accepts fields of type int, int64, string and time.Time (it assumes that values of the latter kind are formatted as a clock-tick count since the system start).

Extra lines are ignored.

Types

This section is empty.

Jump to

Keyboard shortcuts

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