rpaste/modules/setting/setting.go

32 lines
769 B
Go
Raw Normal View History

2021-12-21 01:06:08 +00:00
// rpaste settings
//
// This part of the setting package sets default var types and will set other
// important var information, or even load configuration files. Majority of the
// needed defaults are not set here. They are set in the main package.
package setting
import (
// ini "gopkg.in/ini.v1"
_ "github.com/rocky-linux/rpaste/modules/utility"
)
var (
AppName string
AppBuiltWith string
AppConf string
AppVer string
LexerType string
LifeTime string
PasteBinService string
SysInfo bool
)
// todo: put in support to find conf file in order:
// -> user's home ~/.rpaste
// -> /etc/rpaste/rpaste.conf
// -> or ignore everything and use custom provided
//func init() {
// var err error
//}