parser

package
v0.0.0-...-fc27e31 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParsersFromArgs

func ParsersFromArgs(args []string) (map[int]Parser, error)

Parsers loads Parser types from the array of strings Example: 1,Time,2006-01-02 ^-^----^----index(int),name(string),format(string)

Types

type Parser

type Parser interface {
	Parse(string) (float64, error)
}

type TimeParser

type TimeParser struct {
	Format string
}

func (TimeParser) Parse

func (t TimeParser) Parse(v string) (float64, error)

Jump to

Keyboard shortcuts

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