blob: a5859ce1973e8351be139ddc53f3a356d5bd1a08 [file] [log] [blame]
// +build OMIT
package sample // OMIT
func run() (err error) {
in, err := os.Open(*input)
if err != nil {
return err
}
defer in.Close()
out, err := os.Create(*output)
if err != nil {
return err
}
defer func() { // HL
if cerr := out.Close(); err == nil { // HL
err = cerr // HL
} // HL
}() // HL
// some code
}