Start gen refactor

Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
jolheiser
2021-08-05 20:15:52 -05:00
parent ef89758ede
commit 7923ad0c2a
7 changed files with 107 additions and 32 deletions

View File

@ -1,6 +1,6 @@
//+build ignore
// gen_soundIDs.go generates the enumeration of sound IDs.
// gen_soundid.go generates the enumeration of sound IDs.
package main
import (
@ -12,7 +12,7 @@ import (
)
const (
protocolURL = "https://pokechu22.github.io/Burger/1.17.1.json"
URL = "https://pokechu22.github.io/Burger/1.17.1.json"
)
type sound struct {
@ -61,7 +61,7 @@ func main() {
}
func downloadSoundInfo() ([]sound, error) {
resp, err := http.Get(protocolURL)
resp, err := http.Get(URL)
if err != nil {
return nil, err
}