buildinfo

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package buildinfo reports the CLI/framework version and inspects a consuming repo's go.mod for the wowapi requirement (version-mismatch warning, D-0008). Private: not a consumer-facing contract.

Index

Constants

View Source
const ModulePath = "github.com/qatoolist/wowapi"

ModulePath is wowapi's canonical module path.

Variables

This section is empty.

Functions

func Version

func Version() string

Version returns the CLI build version: the ldflags override, else the main module version stamped by `go install …@vX.Y.Z`, else "devel".

Types

type GoMod

type GoMod struct {
	Dir           string // directory containing go.mod
	ModulePath    string // the module line
	WowapiVersion string // required wowapi version; "" if not required
}

GoMod describes the nearest enclosing go.mod, if any.

func FindGoMod

func FindGoMod(dir string) (GoMod, bool)

FindGoMod walks upward from dir looking for a go.mod and parses the module path plus any wowapi requirement. Returns ok=false when none is found.

func (GoMod) IsFramework

func (g GoMod) IsFramework() bool

IsFramework reports whether the go.mod belongs to wowapi itself.

Jump to

Keyboard shortcuts

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