typecfg-gen

command
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Command typecfg-gen emits a GeneratedBinder implementation for a named config struct so Loader can bind/validate without reflecting over fields.

Usage:

typecfg-gen -type Config -in config.go -out config_gen.go -package mypkg

Typical go:generate directive in the file that defines the struct:

//go:generate go run github.com/sinashahoveisi/typecfg/cmd/typecfg-gen -type Config -in config.go -out config_gen.go -package mypkg

Jump to

Keyboard shortcuts

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