|
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")
|
|
}
|