Fixup file names
This commit is contained in:
parent
8a7e607474
commit
7dddc97bbc
@ -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"`
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user