global_value.go 909 B

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