log

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrorExit

func ErrorExit(e string, c ExitCode)

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

func Exit added in v1.0.0

func Exit(s string)

Exit : ログを出力して終了

Types

type ExitCode

type ExitCode int

ExitCode : 終了コード

const (
	// ExitCodeOK : 正常
	ExitCodeOK ExitCode = iota
	// ExitCodeErrInit : 初期化エラー
	ExitCodeErrInit
	// ExitCodeErrApp : アプリケーションエラー
	ExitCodeErrApp
	// ExitCodeErrFileIO : ファイルIOエラー
	ExitCodeErrFileIO
)

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