MCPcopy Index your code
hub / github.com/Threadfin/Threadfin / compressGZIP

Function compressGZIP

src/compression.go:150–165  ·  view source on GitHub ↗
(data *[]byte, file string)

Source from the content-addressed store, hash-verified

148}
149
150func compressGZIP(data *[]byte, file string) (err error) {
151
152 if len(file) != 0 {
153
154 f, err := os.Create(file)
155 if err != nil {
156 return err
157 }
158
159 w := gzip.NewWriter(f)
160 w.Write(*data)
161 w.Close()
162 }
163
164 return
165}

Callers 1

createXMLTVFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected