27 lines
662 B
Go
27 lines
662 B
Go
package file
|
|
|
|
import "path/filepath"
|
|
|
|
var (
|
|
DefaultBaseDir = "data"
|
|
DefaultQuizzesSubdir = "quizzes"
|
|
DefaultCollectionsSubdir = "collections"
|
|
DefaultParticipantsSubdir = "participants"
|
|
DefaultGroupsSubdir = "groups"
|
|
)
|
|
|
|
func GetDefaultQuizzesDir() string {
|
|
return filepath.Join(DefaultBaseDir, DefaultQuizzesSubdir)
|
|
}
|
|
|
|
func GetDefaultCollectionsDir() string {
|
|
return filepath.Join(DefaultBaseDir, DefaultCollectionsSubdir)
|
|
}
|
|
|
|
func GetDefaultParticipantsDir() string {
|
|
return filepath.Join(DefaultBaseDir, DefaultParticipantsSubdir)
|
|
}
|
|
|
|
func GetDefaultGroupsDir() string {
|
|
return filepath.Join(DefaultBaseDir, DefaultGroupsSubdir)
|
|
}
|