github.com/volts-dev/volts@v0.0.0-20240120094013-5e9c65924106/config/const.go (about)

     1  package config
     2  
     3  type ModeType int
     4  
     5  const (
     6  	CONFIG_FILE_NAME = "config.json"
     7  	DEFAULT_PREFIX   = "volts"
     8  
     9  	MODE_NORMAL ModeType = iota
    10  	MODE_DEBUG
    11  )
    12  
    13  func (c ModeType) String() string {
    14  	switch c {
    15  	case MODE_NORMAL:
    16  		return "Normal"
    17  	case MODE_DEBUG:
    18  		return "Debug"
    19  	default:
    20  		return "UNKNOW"
    21  	}
    22  }