package runtime

import "github.com/gobuffalo/buffalo/runtime"

Index

Variables

var Version = "v1.1.0"

Version is the current version of the buffalo binary

Functions

func SetBuild

func SetBuild(b BuildInfo)

SetBuild allows the setting of build information only once. This is typically managed by the binary built by `buffalo build`.

Types

type BuildInfo

type BuildInfo struct {
	Version string    `json:"version"`
	Time    time.Time `json:"-"`
}

BuildInfo holds information about the build

func Build

func Build() BuildInfo

Build returns the information about the current build of the application. In development mode this will almost always run zero values for BuildInfo.

func (BuildInfo) String

func (b BuildInfo) String() string

String implements fmt.String

Source Files

build.go version.go

Version
v1.1.2 (latest)
Published
May 17, 2025
Platform
js/wasm
Imports
3 packages
Last checked
1 week ago

Tools for package owners.