MCPcopy Create free account
hub / github.com/djhworld/simple-computer / getWriterFor

Function getWriterFor

cmd/assembler/main.go:82–88  ·  view source on GitHub ↗
(file string)

Source from the content-addressed store, hash-verified

80}
81
82func getWriterFor(file string) (io.WriteCloser, error) {
83 if file == "" {
84 return os.Stdout, nil
85 }
86
87 return os.Create(file)
88}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected