sys

package
v0.0.0-...-843cdbd Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 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