remove some old useless files

master
Jordan Orelli 3 years ago
parent 993982441c
commit 1bc14f79ff

@ -1,5 +0,0 @@
package index
type Domain struct {
Packages map[string][]Version `json:"packages"`
}

@ -1,24 +0,0 @@
package index
import (
"encoding/json"
"fmt"
"os"
)
// Index maps package path roots to their domains
type Index map[string]Domain
func Load(path string) (Index, error) {
f, err := os.Open(path)
if err != nil {
return nil, fmt.Errorf("failed to load index at path %q: %w", path, err)
}
defer f.Close()
var i Index
if err := json.NewDecoder(f).Decode(&i); err != nil {
return nil, fmt.Errorf("failed to parse index file at %q: %w", path, err)
}
return i, nil
}

@ -1 +0,0 @@
package index

@ -1,5 +0,0 @@
package index
type Root struct {
Path string
}

@ -1,4 +0,0 @@
package index
type Version struct {
}

@ -1,3 +0,0 @@
module orel.li/fart
go 1.17

@ -1,9 +0,0 @@
package main
import (
"fmt"
)
func main() {
fmt.Println("pfft")
}
Loading…
Cancel
Save