exit

package
v0.0.0-...-5e36e8a Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(e string, c ExitCode)

Error : エラーを出力して終了

func OK

func OK(s string)

OK : ログを出力して終了

Types

type ExitCode

type ExitCode int

ExitCode : 終了コード

const (
	// CodeOK : 正常
	CodeOK ExitCode = iota
	// CodeErr : エラー
	CodeErr
	// CodeErrInit : 初期化エラー
	CodeErrInit ExitCode = iota + 62
	// ExitCodeErrFileIO : 読み込みエラー
	CodeErrRead
	// CodeErrWrite : 書き込みエラー
	CodeErrWrite
	// CodeErrTerm : 端末関連のエラー
	CodeErrTerm
)

func (ExitCode) GetInt

func (e ExitCode) GetInt() int

GetInt : 数値を取得

Jump to

Keyboard shortcuts

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