defaults.go 795 B

1234567891011121314151617181920212223242526272829303132
  1. package file
  2. import "path/filepath"
  3. var (
  4. DefaultBaseDir = "data"
  5. DefaultQuizzesSubdir = "quizzes"
  6. DefaultCollectionsSubdir = "collections"
  7. DefaultParticipantsSubdir = "participants"
  8. DefaultGroupsSubdir = "groups"
  9. DefaultExamsSubdir = "exams"
  10. )
  11. func GetDefaultQuizzesDir() string {
  12. return filepath.Join(DefaultBaseDir, DefaultQuizzesSubdir)
  13. }
  14. func GetDefaultCollectionsDir() string {
  15. return filepath.Join(DefaultBaseDir, DefaultCollectionsSubdir)
  16. }
  17. func GetDefaultParticipantsDir() string {
  18. return filepath.Join(DefaultBaseDir, DefaultParticipantsSubdir)
  19. }
  20. func GetDefaultGroupsDir() string {
  21. return filepath.Join(DefaultBaseDir, DefaultGroupsSubdir)
  22. }
  23. func GetDefaultExamsDir() string {
  24. return filepath.Join(DefaultBaseDir, DefaultExamsSubdir)
  25. }