𝙼
Size: a a a
𝙼
𝙼
--no-prebuild
VR
SS
A
SS
𝙼
SS
𝙼
SS
SS
A
package main
import (
"encoding/json"
"log"
"os"
"time"
)
type Data struct {
AreaNames map[int]string
AudienceSubCategoryNames map[int]string
BlockNames struct{}
Events map[int]Event
Performances []Performance
SeatCategoryNames map[int]string
SubTopicNames map[int]string
SubjectNames struct{}
TopicNames map[int]string
TopicSubTopics map[int][]int
VenueNames struct {
PLEYEL_PLEYEL string
}
}
type Event struct {
Description *string
Id int
Logo *string
Name string
SubTopicIds []int
SubjectCode *int
Subtitle *string
TopicIds []int
}
type Performance struct {
EventId int
Id int
Logo *string
Name *struct{}
Prices []Price
SeatCategories []SeatCategory
SeatMapImage struct{}
Start int
VenueCode string
}
type Price struct {
Amount int
AudienceSubCategoryId int
SeatCategoryId int
}
type SeatCategory struct {
Areas []Area
SeatCategoryId int
}
type Area struct {
AreaId int
BlockIds []struct{}
}
func main() {
st := time.Now()
f, err := os.Open("citm_catalog.json")
if err != nil {
log.Fatalln(err)
}
defer f.Close()
var data Data
err = json.NewDecoder(f).Decode(&data)
if err != nil {
log.Fatalln(err)
}
log.Println(time.Since(st))
/*log.Printf("%+v", data)
b, _ := json.MarshalIndent(data, "", " ")
ioutil.WriteFile("citm_catalog2.json", b, 0644)*/
}
SS
𝙼
SS
𝙼
SS
SS
𝙼
SS