flagjson

package
v0.0.0-...-5d34715 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package flagjson provides an implementation of guthub.com/dolmen-go/flagx/flagfile.Loader using JSON as file format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(flagset *flag.FlagSet) flag.Value

File allows to declare a command-line flag that will inject the JSON content of the filename given by the user as arguments of the command-line.

The filename may include an URI fragment starting with '#' and followed by a JSON Pointer (RFC 6901) to load the arguments from a part of the file. The empty fragment ("") means the root value, which is the whole file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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