reorg types
This commit is contained in:
parent
042926d01a
commit
650149c55c
4
main.go
4
main.go
@ -29,13 +29,11 @@ import (
|
|||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ypkg struct {
|
var m map[string]struct {
|
||||||
Repo string `yaml:"repo,omitempty"`
|
Repo string `yaml:"repo,omitempty"`
|
||||||
Display string `yaml:"display,omitempty"`
|
Display string `yaml:"display,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
var m map[string]ypkg
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
vanity, err := ioutil.ReadFile("./vanity.yaml")
|
vanity, err := ioutil.ReadFile("./vanity.yaml")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user