Sign in
go
/
website
/
084ad90bc301c71032ff0dd6726fc00342ea3204
/
.
/
_content
/
talks
/
2014
/
readability
/
err_close_write_bad.go
blob: 8de949767387d6fbd9844254b68ff454820ad1e8 [
file
] [
log
] [
blame
]
// +build ignore,OMIT
package sample
// OMIT
func run() 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 out.Close()
// HL
// some code
}