Error handling

This commit is contained in:
Zoltán Papp 2024-06-26 16:23:50 +02:00
parent c0efce6556
commit 3fcdb51376
2 changed files with 6 additions and 9 deletions

View File

@ -51,15 +51,15 @@ func (c *Conn) LocalAddr() net.Addr {
}
func (c *Conn) SetReadDeadline(t time.Time) error {
return nil
return fmt.Errorf("not implemented")
}
func (c *Conn) SetWriteDeadline(t time.Time) error {
return nil
return fmt.Errorf("not implemented")
}
func (c *Conn) SetDeadline(t time.Time) error {
return nil
return fmt.Errorf("not implemented")
}
func (c *Conn) Close() error {

View File

@ -74,18 +74,15 @@ func (c *Conn) RemoteAddr() net.Addr {
}
func (c *Conn) SetReadDeadline(t time.Time) error {
// todo: implement me
return nil
return fmt.Errorf("not implemented")
}
func (c *Conn) SetWriteDeadline(t time.Time) error {
// todo: implement me
return nil
return fmt.Errorf("not implemented")
}
func (c *Conn) SetDeadline(t time.Time) error {
// todo: implement me
return nil
return fmt.Errorf("not implemented")
}
func (c *Conn) Close() error {