util

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HomeDir

func HomeDir() string

func ParseTemplate

func ParseTemplate(body string, values interface{}) ([]byte, error)

ParseTemplate parses template with body and values and returns the resulting bytes.

func WriteTemplate

func WriteTemplate(body string, file string, values interface{}) error

WriteTemplate writes template with body to file after applying values.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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