Documentation ¶
Index ¶
- func ExternalModule(w io.Writer, module *schema.Module, importRoot string) error
- func File[T any](path string, importRoot string, generator func(io.Writer, T, string) error, ...) error
- func GenerateGoMod(w io.Writer, config GoModConfig, importRoot string) error
- func GenerateGoWork(w io.Writer, modules []string, importRoot string) error
- func Main(w io.Writer, module *schema.Module, importRoot string) error
- type GoModConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExternalModule ¶
ExternalModule Go stubs for the given module.
func File ¶
func File[T any](path string, importRoot string, generator func(io.Writer, T, string) error, parameter T) error
File is a helper function for the generator functions in this package, to create a file and its parent directories, then call a generator function.
func GenerateGoMod ¶
func GenerateGoMod(w io.Writer, config GoModConfig, importRoot string) error
GenerateGoMod generates a go.mod file.
func GenerateGoWork ¶
GenerateGoWork generates a go.work file.
Types ¶
type GoModConfig ¶
Click to show internal directories.
Click to hide internal directories.