Documentation ¶
Overview ¶
Package shlex implements a simple lexer which expands environment variables using shell-style rules for quoting and commenting.
The basic use case uses the default ASCII lexer to split a string into sub-strings:
shlex.Expand("one ${A} four", ...) -> "one X four"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MappingFunc ¶
MappingFunc is the type of the function called by Expand to retrieve the value of the environment variable named by the key. If the variable is present in the environment the value (which may be empty) is returned and the boolean is true. Otherwise, the returned value will be empty and the boolean will be false.
Click to show internal directories.
Click to hide internal directories.