mirror of
https://github.com/fluffle/goirc
synced 2025-09-06 00:43:20 +00:00
Minimally invasive change to put logging behind a user-replaceable interface.
This could probably be done better, and there are probably awful caveats and hidden gotchas with this approach. I REGRET NOTHING.
This commit is contained in:
parent
06a9cb5d0f
commit
5bb0c8278d
10 changed files with 60 additions and 15 deletions
|
@ -136,11 +136,11 @@ func (m *mockNetConn) Close() error {
|
|||
}
|
||||
|
||||
func (m *mockNetConn) LocalAddr() net.Addr {
|
||||
return &net.IPAddr{net.IPv4(127, 0, 0, 1)}
|
||||
return &net.IPAddr{net.IPv4(127, 0, 0, 1), ""}
|
||||
}
|
||||
|
||||
func (m *mockNetConn) RemoteAddr() net.Addr {
|
||||
return &net.IPAddr{net.IPv4(127, 0, 0, 1)}
|
||||
return &net.IPAddr{net.IPv4(127, 0, 0, 1), ""}
|
||||
}
|
||||
|
||||
func (m *mockNetConn) SetDeadline(t time.Time) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue