global_value.go 802 B

123456789101112131415161718192021
  1. package global_value
  2. func Init(customExts []string) {
  3. WantedExtMap = make(map[string]string) // 人工确认的需要监控的视频后缀名
  4. DefExtMap = make(map[string]string) // 内置支持的视频后缀名列表
  5. CustomVideoExts = customExts // 用户额外自定义的视频后缀名列表
  6. }
  7. // util.go
  8. var (
  9. AppVersion = "" // 程序的版本号
  10. ConfigRootDirFPath = ""
  11. DefDebugFolder = ""
  12. DefTmpFolder = ""
  13. DefRodTmpRootFolder = ""
  14. DefSubFixCacheFolder = ""
  15. WantedExtMap = make(map[string]string) // 人工确认的需要监控的视频后缀名
  16. DefExtMap = make(map[string]string) // 内置支持的视频后缀名列表
  17. CustomVideoExts = make([]string, 0) // 用户额外自定义的视频后缀名列表
  18. )