newFile is object builder
()
| 148 | |
| 149 | // newFile is object builder |
| 150 | func newFile() *File { |
| 151 | return &File{ |
| 152 | options: &Options{UnzipSizeLimit: UnzipSizeLimit, UnzipXMLSizeLimit: StreamChunkSize}, |
| 153 | xmlAttr: sync.Map{}, |
| 154 | checked: sync.Map{}, |
| 155 | sheetMap: make(map[string]string), |
| 156 | tempFiles: sync.Map{}, |
| 157 | Comments: make(map[string]*xlsxComments), |
| 158 | Drawings: sync.Map{}, |
| 159 | sharedStringsMap: make(map[string]int), |
| 160 | Sheet: sync.Map{}, |
| 161 | DecodeVMLDrawing: make(map[string]*decodeVmlDrawing), |
| 162 | VMLDrawing: make(map[string]*vmlDrawing), |
| 163 | Relationships: sync.Map{}, |
| 164 | CharsetReader: charset.NewReaderLabel, |
| 165 | ZipWriter: func(w io.Writer) ZipWriter { return zip.NewWriter(w) }, |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | // checkOpenReaderOptions check and validate options field value for open |
| 170 | // reader. |
no outgoing calls
no test coverage detected