Discover Packages
github.com/stilvoid/please
parsers
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Sep 21, 2019
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package parsers houses the build-in parser functions that are registered with please
Identify tries to figure out the format of the structured data passed in
If successful, the name of the detected format and a copy of its data parsed into an interface{} will be returned
If the data format could not be identified, an error will be returned
Names returns a sorted list of valid options for the "format" parameter of Parse
Register assigns a Parser function to a name. If the name has already been registered, an error will be returned.
type Parser func([]byte ) (interface{}, error )
Type Parser is a function that takes a byte slice and attempts to parse it into a structure format in an interface{}
Get returns a Parser function by name. If the named parser is not found, an error will be returned.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.