func NewGlobals() *Globals { self := &Globals{ tableByName: make(map[string]*model.Table), FileDescriptor: model.NewFileDescriptor(), CombineStruct: model.NewDescriptor(), } return self }
func NewFile(filename string) *File { self := &File{ valueRepByKey: make(map[valueRepeatData]bool), LocalFD: model.NewFileDescriptor(), FileName: filename, } var err error self.coreFile, err = xlsx.OpenFile(filename) if err != nil { log.Errorln(err.Error()) return nil } return self }