Documentation ¶
Overview ¶
Package options is the home of the Options type, used to control optional behavior of core types such as Source.
Index ¶
Constants ¶
View Source
const ( // OptHasHeader is the key for a header option. OptHasHeader = "header" // OptCols is the key for a cols option. OptCols = "cols" // OptDelim the key for a delimiter option. OptDelim = "delim" )
Variables ¶
This section is empty.
Functions ¶
func GetColNames ¶
GetColNames returns column names specified like "--opts=cols=A,B,C".
Types ¶
type Options ¶
Options are optional values akin to url.Values.
func ParseOptions ¶
ParseOptions parses the URL-encoded options string. If allowedOpts is non-empty, the options are tested for basic correctness. See url.ParseQuery.
Click to show internal directories.
Click to hide internal directories.