appname

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package appname derives the invoking binary's display name from os.Args[0].

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Binary

func Binary() (string, bool)

Binary returns the base name of the invoking binary with any Windows ".exe" extension stripped. It reports false when no usable name can be derived: an empty os.Args slice, an empty argv[0], or a Go test runner binary (".test" suffix).

Types

This section is empty.

Jump to

Keyboard shortcuts

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