Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (13 sloc) 246 Bytes
package netlog
import (
// logClose calls Close on the subject and logs the error if any
// this is handy to call Close on defer
func logClose(c io.Closer) {
err := c.Close()
if err != nil {
log.Printf("error: %s", err)
You can’t perform that action at this time.