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 ¶
const License = "AGPL-3.0-or-later"
License is the SPDX identifier of the Mesh core.
Variables ¶
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.
Types ¶
This section is empty.