elvish: github.com/elves/elvish/pkg/eval/platform Index | Files

package platform

import "github.com/elves/elvish/pkg/eval/platform"

Package platform exposes variables and functions that deal with the specific platform being run on, such as the OS name and CPU architecture.


Package Files

platform.go unix.go


var Ns = eval.Ns{
    "arch":       vars.NewReadOnly(runtime.GOARCH),
    "os":         vars.NewReadOnly(runtime.GOOS),
    "is-unix":    vars.NewReadOnly(isUnix),
    "is-windows": vars.NewReadOnly(isWindows),

Package platform imports 3 packages (graph). Updated 2020-05-30. Refresh now. Tools for package owners.