go-utils

module
v0.0.0-...-6be9ca7 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT

README

go-utils

Common golang utilities functions used by other projects

pkg/version

Generic binary versioning support. Variables are configured at build time using -ldflags:

LD_FLAGS="\
-X github.com/alexditu/go-utils/pkg/version.commitHash=$(git rev-parse --short HEAD) \
-X github.com/alexditu/go-utils/pkg/version.branchName=$(git rev-parse --abbrev-ref HEAD) \
-X github.com/alexditu/go-utils/pkg/version.binaryName=${BIN_NAME} \
-X github.com/alexditu/go-utils/pkg/version.major=1 \
-X github.com/alexditu/go-utils/pkg/version.minor=0"

Directories

Path Synopsis
pkg
test
version command

Jump to

Keyboard shortcuts

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