Discover Packages
github.com/locktivity/epack
internal
platform
package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Feb 25, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package platform provides platform identification utilities.
This package centralizes GOOS/GOARCH key generation that was previously
duplicated across multiple packages.
Current returns the platform key for the current runtime.
Key returns "os/arch" for the given os and arch.
This is the canonical format for platform identification in lockfiles,
asset names, and registry lookups.
Split splits "os/arch" into goos and goarch.
Returns (platform, "") if no separator is found.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.