templates

package
v0.0.0-...-d3cc92b Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const FeedbackPkg = feedback.Package("templates")

Variables

View Source
var ErrNameNotFound = errors.New("couldn't determine username")

Functions

func Execute

func Execute(templateText, path string, data any) error

func GetUsername

func GetUsername() (string, error)

GetUsername tries to determine the name of the current user. It looks at the following things in order:

  1. git config user.name
  2. currently logged in user of the OS

Types

This section is empty.

Jump to

Keyboard shortcuts

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