Fixup file names

This commit is contained in:
Ashlie Martinez 2023-03-31 15:11:33 -07:00
parent 8a7e607474
commit 7dddc97bbc
2 changed files with 4 additions and 4 deletions

View File

@ -12,10 +12,10 @@ const (
ItemSize = 1024 ItemSize = 1024
GzipSuffix = ".gz" GzipSuffix = ".gz"
FileName = "input.json" FileName = "input.json"
ManifestFileName = "manifest-input.json"
) )
var ManifestFileName = fmt.Sprintf("manifest-input.%d.json", NumItems)
type FooArray struct { type FooArray struct {
Entries []*Foo `json:"entries"` Entries []*Foo `json:"entries"`
} }

View File

@ -144,7 +144,7 @@ func main() {
data.Entries = append(data.Entries, entry) data.Entries = append(data.Entries, entry)
} }
f, err := os.Create(common.FileName) f, err := os.Create(common.ManifestFileName)
if err != nil { if err != nil {
fmt.Printf("Error making regular output file: %v\n", err) fmt.Printf("Error making regular output file: %v\n", err)
return return
@ -158,7 +158,7 @@ func main() {
return return
} }
fgz, err := os.Create(common.FileName + common.GzipSuffix) fgz, err := os.Create(common.ManifestFileName + common.GzipSuffix)
if err != nil { if err != nil {
fmt.Printf("Error making gzip output file: %v\n", err) fmt.Printf("Error making gzip output file: %v\n", err)
return return