Documentation ¶ Index ¶ func Expand(template string, vars map[string]string) (string, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Expand ¶ func Expand(template string, vars map[string]string) (string, error) Expand replaces all variables like {var} by `vars` map, it always returns the expanded string regardless of errors if error occurs, the error part doesn't change and is returned as it is. Types ¶ This section is empty. Source Files ¶ View all Source files vars.go Click to show internal directories. Click to hide internal directories.