func (x *GoSNMP) Close() error { return x.conn.Close() } snmp, err := gosnmp.NewGoSNMP(ip, community, gosnmp.Version2c, timeout) if err != nil { return err } defer snmp.Close()
func (x *GoSNMP) Close() error {
return x.conn.Close()
}
snmp, err := gosnmp.NewGoSNMP(ip, community, gosnmp.Version2c, timeout)
if err != nil {
return err
}
defer snmp.Close()