I'm settling on the idea that strings should never be returned from the userfile system. Instead, indicate which collection you want and pass objects across.
13 lines
215 B
Go
13 lines
215 B
Go
package userfile
|
|
|
|
type Collection int
|
|
|
|
const (
|
|
CollectionAudioRaw Collection = iota
|
|
CollectionAudioNormalized
|
|
CollectionAudioTranscoded
|
|
CollectionCSV
|
|
CollectionImageRaw
|
|
CollectionLogo
|
|
CollectionPublicImage
|
|
)
|