Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Context  string `yaml:"context"`
	Input    string `yaml:"input"`
	Output   string `yaml:"output"`
	Template string `yaml:"template"`
	Bookmark string `yaml:"bookmark"`
	Logfile  string `yaml:"logfile"`
	Verbose  bool   `yaml:"verbose"`
	Workdir  string `yaml:"workdir"`
}

Config represents the configuration for docgen.

func LoadConfig

func LoadConfig(path string) (*Config, error)

LoadConfig reads and parses a YAML configuration file.

func New

func New() Config

New returns a Config with default values.

func (*Config) ApplyDefaults

func (c *Config) ApplyDefaults()

ApplyDefaults sets default values for missing fields.

func (*Config) NormalizePaths

func (c *Config) NormalizePaths()

NormalizePaths normalizes file paths relative to workdir.

Jump to

Keyboard shortcuts

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