runtime

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package runtime provides information about the environment where the program was compiled.

Index

Constants

View Source
const GOARCH string = "unknown"

GOARCH is the running program's architecture target: one of amd64, arm64, and so on.

View Source
const GOOS string = "unknown"

GOOS is the running program's operating system target: one of darwin, linux, windows, and so on.

Variables

This section is empty.

Functions

func Seed

func Seed() uint64

Seed returns a random 64-bit seed. It's cryptographically secure on macOS/Linux (arc4random_buf/getrandom) and falls back to a time-based seed on other platforms.

func Version

func Version() string

Version returns the So tree's version string. It is either the commit hash and date at the time of the build or, when possible, a release tag like "v0.1.0".

Types

This section is empty.

Jump to

Keyboard shortcuts

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