MCPcopy
hub / github.com/qax-os/excelize / newFile

Function newFile

excelize.go:150–167  ·  view source on GitHub ↗

newFile is object builder

()

Source from the content-addressed store, hash-verified

148
149// newFile is object builder
150func 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.

Callers 2

NewFileFunction · 0.85
OpenReaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected