utils

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeriveStableUUID

func DeriveStableUUID(providers ...UUIDSeedProvider) (uuid.UUID, error)

DeriveStableUUID returns a deterministic UUID derived from the provided seed segments.

func OsHost

func OsHost() string

OsHost fetches the hostname from the runtime.

func OsUser

func OsUser() string

OsUser returns the current operating system's username or "unknown" if the username cannot be retrieved.

Types

type UUIDSeedProvider

type UUIDSeedProvider = func() string

UUIDSeedProvider surfaces a deterministic string segment that feeds the UUID derivation.

Jump to

Keyboard shortcuts

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