I decided to rewrite the program taking into account the experience gained.
13 lines
148 B
Go
13 lines
148 B
Go
package resources
|
|
|
|
import (
|
|
"embed"
|
|
)
|
|
|
|
//go:embed translations
|
|
var translations embed.FS
|
|
|
|
func GetTranslations() embed.FS {
|
|
return translations
|
|
}
|