This repository has been archived on 2026-03-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
lotus-package-manager/Tools/RegistryList.go
2021-10-30 22:16:32 +02:00

24 lines
No EOL
333 B
Go

package Tools
import (
"os"
)
type RegistryList struct {
Registries []string
}
func CheckIfRegistryFileExists() bool{
_, dirErr := os.Stat("data")
_, fileErr := os.Stat("data/registry.list")
if dirErr != nil || fileErr != nil {
return false
}
return true
}
func LoadRegistryList(){
if CheckIfRegistryFileExists(){
}
}