exitcode

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: CC0-1.0 Imports: 1 Imported by: 16

Documentation

Overview

Package exitcode : OS exit code enumeration

These codes are licensed under CC0. http://creativecommons.org/publicdomain/zero/1.0/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExitCode

type ExitCode int

ExitCode is OS exit code enumeration class

const (
	//Normal is OS exit code "normal"
	Normal ExitCode = iota
	//Abnormal is OS exit code "abnormal"
	Abnormal
)

func (ExitCode) Exit

func (c ExitCode) Exit()

Exit calls os.Exit()

func (ExitCode) ExitIfNotNormal added in v0.13.0

func (c ExitCode) ExitIfNotNormal()

ExitIfNotNormal calls os.Exit() if exit code is not Normal.

func (ExitCode) String

func (c ExitCode) String() string

Stringer method

Jump to

Keyboard shortcuts

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