sys

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 7 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ColorWriter = &colorWriter{}
View Source
var NoneWriter = &noneWriter{}
View Source
var ServerID string

Functions

func ConsoleToLogger

func ConsoleToLogger(call func(msg string))

func Error

func Error(arg ...any)

func Exit

func Exit(err *errors.Error)

func Info

func Info(arg ...any)

func Success

func Success(arg ...any)

func Warn

func Warn(arg ...any)

Types

type Mode

type Mode string

Mode Run Mode Defined

const (
	LOCAL Mode = "local"
	DEV   Mode = "dev"
	TEST  Mode = "test"
	PRE   Mode = "pre"
	PROD  Mode = "prod"
)

[dev|local|test|pre|prod]

var RunMode Mode

func ModeValueOf

func ModeValueOf(mode string) Mode

func (Mode) IsDev

func (r Mode) IsDev() bool

func (Mode) IsLocal

func (r Mode) IsLocal() bool

func (Mode) IsPre

func (r Mode) IsPre() bool

func (Mode) IsProd

func (r Mode) IsProd() bool

func (Mode) IsRd

func (r Mode) IsRd() bool

func (Mode) IsTest

func (r Mode) IsTest() bool

Jump to

Keyboard shortcuts

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