Documentation
¶
Index ¶
- Constants
- func Build(ctx context.Context, opts Options) (string, error)
- func CacheKey(configDir string, opts Options) (string, error)
- func CachedOutputPath(key string) (string, error)
- func DefaultConfigDir() (string, error)
- func DefaultOutputPath() (string, error)
- func GenerateGoMod(opts Options) string
- func GenerateMain(opts Options) string
- func GenerateMainForModule(opts Options, modulePath string) string
- func ModulePath(configDir string) (string, error)
- func ModuleVersion(version string) string
- func TidyConfigDir(ctx context.Context, configDir string, stdout, stderr io.Writer) error
- type Options
Constants ¶
View Source
const ( UserModulePath = "github.com/Ceinl/plums-user" PlumsModulePath = "github.com/Ceinl/plums" )
Variables ¶
This section is empty.
Functions ¶
func CachedOutputPath ¶
func DefaultConfigDir ¶
func DefaultOutputPath ¶
func GenerateGoMod ¶
func GenerateMain ¶
func GenerateMainForModule ¶
func ModulePath ¶
func ModuleVersion ¶
func TidyConfigDir ¶
TidyConfigDir runs `go mod tidy` in configDir when go.sum is missing, so a freshly seeded config module resolves its imports in editors (gopls needs go.sum entries) without the user running go commands by hand. Callers treat failure as non-fatal: the auto-build path tidies its own work module anyway, and an offline first launch should not break seeding.
Types ¶
Click to show internal directories.
Click to hide internal directories.