module

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2026 License: MIT Imports: 27 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCannotInstallModule = errbuilder.New("cannot install the module").
	WithHint("The install field in the manifest file should be a valid command running under 'go run'").Build()
View Source
var ErrCannotRunGoGetCommand = errbuilder.New("cannot run go get command").Build()
View Source
var ErrPackageIsEmpty = errbuilder.New("package is empty").
	WithHint("Please provide a package for the module in the manifest file.").Build()

Functions

func NewAddCliCommand

func NewAddCliCommand(addCli *AddCli) *cli.Command

func NewAddJsonApiCommand

func NewAddJsonApiCommand(addJsonApi *AddJsonApi) *cli.Command

func NewCreateCommand

func NewCreateCommand(createModule *Create) *cli.Command

func NewInstallCommand

func NewInstallCommand(addModule *Install) *cli.Command

func NewModuleCommand

func NewModuleCommand(
	create *Create,
	install *Install,
	addCli *AddCli,
	addJsonApi *AddJsonApi,
) *cli.Command

Types

type AddCli

type AddCli struct {
}

func NewAddCli

func NewAddCli() *AddCli

func (*AddCli) Invoke

func (a *AddCli) Invoke(ctx *cli.Context) error

type AddCliTmplVars

type AddCliTmplVars struct {
	StructName  string
	CommandName string
}

type AddJsonApi

type AddJsonApi struct {
}

func NewAddJsonApi

func NewAddJsonApi() *AddJsonApi

func (*AddJsonApi) Invoke

func (a *AddJsonApi) Invoke(ctx *cli.Context) error

type AddJsonApiTmplVars

type AddJsonApiTmplVars struct {
	StructName  string
	Uri         string
	PackageName string
	Method      string
}

func (AddJsonApiTmplVars) IsBodyRequired

func (v AddJsonApiTmplVars) IsBodyRequired() bool

type Create

type Create struct {
	// contains filtered or unexported fields
}

func NewCreate

func NewCreate(
	logger *slog.Logger,
	installStorage *action.InstallStorage,
) *Create

func (*Create) Invoke

func (c *Create) Invoke(
	ctx *cli.Context,
) (err error)

type Install

type Install struct {
	// contains filtered or unexported fields
}

func NewInstall

func NewInstall(
	logger *slog.Logger,
) *Install

func (*Install) Invoke

func (c *Install) Invoke(
	ctx *cli.Context,
) error

type InstalledFileVars

type InstalledFileVars struct {
	ModuleName     string
	ProjectPackage string
}

type TmplVars

type TmplVars struct {
	Module     module.ManifestModule
	HasStorage bool
}

Jump to

Keyboard shortcuts

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