MCPcopy
hub / github.com/monasticacademy/httptap / Write

Method Write

experiments/goproxy/goproxy-experiment.go:31–39  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

29}
30
31func (fs *FileStream) Write(b []byte) (nr int, err error) {
32 if fs.f == nil {
33 fs.f, err = os.Create(fs.path)
34 if err != nil {
35 return 0, err
36 }
37 }
38 return fs.f.Write(b)
39}
40
41func (fs *FileStream) Close() error {
42 fmt.Println("Close", fs.path)

Callers

nothing calls this directly

Calls 1

WriteMethod · 0.65

Tested by

no test coverage detected