format

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package format provides configuration for output formatting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format struct {
	Text string
	JSON bool
}

Format contains configuration required to template data.

func (Format) Parse

func (f Format) Parse(text string, data interface{}) string

Parse text as template and fill it with data.

Directories

Path Synopsis
Package flags provides -template and -json flags for output formatting.
Package flags provides -template and -json flags for output formatting.

Jump to

Keyboard shortcuts

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