mullvadclosest/embed.go

17 lines
264 B
Go
Raw Normal View History

2024-06-09 14:40:44 +00:00
package mullvadclosest
import (
"embed"
)
//go:embed relays.2024-06-04.json
var fs embed.FS
func GetEmbeddedFile(name string) ([]byte, error) {
return fs.ReadFile(name)
}
func GetRelays() ([]byte, error) {
return GetEmbeddedFile("relays.2024-06-04.json")
}