outputx

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package outputx contains extensions to pkg output, and helpers for implementing output writers.

REVISIT: This package is a bit of an odd duck. Can the functionality be moved elsewhere?

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VerboseOpt

type VerboseOpt struct {
	Key          string `json:"key"`
	Usage        string `json:"usage"`
	Type         string `json:"type"`
	IsSet        bool   `json:"is_set"`
	DefaultValue any    `json:"default_value"`
	Value        any    `json:"value"`
	Help         string `json:"help"`
}

VerboseOpt is a verbose realization of an options.Opt value. This is used primarily to print metadata about the opt.

func NewVerboseOpt

func NewVerboseOpt(opt options.Opt, o options.Options) VerboseOpt

NewVerboseOpt returns a VerboseOpt built from opt and o.

Jump to

Keyboard shortcuts

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