Fixup file names
This commit is contained in:
parent
8a7e607474
commit
7dddc97bbc
@ -12,10 +12,10 @@ const (
|
||||
ItemSize = 1024
|
||||
GzipSuffix = ".gz"
|
||||
FileName = "input.json"
|
||||
|
||||
ManifestFileName = "manifest-input.json"
|
||||
)
|
||||
|
||||
var ManifestFileName = fmt.Sprintf("manifest-input.%d.json", NumItems)
|
||||
|
||||
type FooArray struct {
|
||||
Entries []*Foo `json:"entries"`
|
||||
}
|
||||
|
||||
@ -144,7 +144,7 @@ func main() {
|
||||
data.Entries = append(data.Entries, entry)
|
||||
}
|
||||
|
||||
f, err := os.Create(common.FileName)
|
||||
f, err := os.Create(common.ManifestFileName)
|
||||
if err != nil {
|
||||
fmt.Printf("Error making regular output file: %v\n", err)
|
||||
return
|
||||
@ -158,7 +158,7 @@ func main() {
|
||||
return
|
||||
}
|
||||
|
||||
fgz, err := os.Create(common.FileName + common.GzipSuffix)
|
||||
fgz, err := os.Create(common.ManifestFileName + common.GzipSuffix)
|
||||
if err != nil {
|
||||
fmt.Printf("Error making gzip output file: %v\n", err)
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user