tagparser

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvailableConfig

type AvailableConfig struct {
	Name    string
	Package string
	Options []ConfigOption
}

func Analyze

func Analyze(ctx context.Context, files []*ast.File) []AvailableConfig

type ConfigOption

type ConfigOption struct {
	Name     string // The name of the environment variable.
	Required bool   // Whether the environment var is required to be set.
	Default  string // The default value if the env var isn't set.
}

func (*ConfigOption) String

func (o *ConfigOption) String() string

Jump to

Keyboard shortcuts

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