internal

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package internal provides core application constants and metadata.

Index

Constants

View Source
const (
	// ApplicationName is the name of the Grant application.
	ApplicationName = "grant"
	// NotProvided is the value used when a build variable was not provided
	NotProvided = "[not provided]"
)

Variables

This section is empty.

Functions

func ApplicationVersion

func ApplicationVersion() string

ApplicationVersion returns the current version for backward compatibility

func SetBuildInfo added in v0.3.1

func SetBuildInfo(ver, commit, date, desc, goVer string)

SetBuildInfo sets build information from main package

Types

type BuildInfo added in v0.3.1

type BuildInfo struct {
	Application    string
	Version        string
	BuildDate      string
	GitCommit      string
	GitDescription string
	Platform       string
	GoVersion      string
	Compiler       string
}

BuildInfo holds the application build details

func GetBuildInfo added in v0.3.1

func GetBuildInfo() BuildInfo

GetBuildInfo returns the current build information

Directories

Path Synopsis
Code generated by internal/licensepatterns/generate/generate_patterns.go; DO NOT EDIT.
Code generated by internal/licensepatterns/generate/generate_patterns.go; DO NOT EDIT.
generate command
Code generated by internal/spdxlicense/generate/generate_license_index.go; DO NOT EDIT.
Code generated by internal/spdxlicense/generate/generate_license_index.go; DO NOT EDIT.
generate command

Jump to

Keyboard shortcuts

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