buildinfo

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package buildinfo exposes the running Mesh version and its AGPL section 13 Corresponding Source offer. It is shared by every network-served surface (the hub's human pages, the hub /about endpoint, and the web app shell) so the offer is rendered identically everywhere a user interacts with the program remotely.

Index

Constants

View Source
const License = "AGPL-3.0-or-later"

License is the SPDX identifier of the Mesh core.

Variables

View Source
var Version = "dev"

Version is the build version. Stamp it at build time with

-ldflags "-X github.com/bright-interaction/mesh/internal/buildinfo.Version=$(git rev-parse --short HEAD)"

or override at runtime with MESH_VERSION. Defaults to "dev".

Functions

func FooterHTML

func FooterHTML() string

FooterHTML wraps FooterInline in a muted, dark-theme-friendly document-flow footer, for the hub's full-page human surfaces (landing/invite/download/team).

func FooterInline

func FooterInline() string

FooterInline renders the AGPL section 13 notice as inline content (no wrapper): the version, a link to the license text, and (when MESH_SOURCE_URL is set) a link to the Corresponding Source. The version and URL are operator-controlled env, escaped defensively. Links inherit color so the caller controls placement and theme.

func SourceURL

func SourceURL() string

SourceURL is the AGPL section 13 Corresponding Source location for THIS version, from MESH_SOURCE_URL (point it at the public repo at the running tag/commit). It is empty when unset (e.g. before the open-core repo is published); callers then show the license without a broken source link, and one env var turns the offer on.

func Ver

func Ver() string

Ver returns the effective version: the MESH_VERSION env override if set, else the build-stamped Version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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