yans/internal/protocol/nntp_response.go
2022-02-03 19:44:08 +03:00

13 lines
184 B
Go

package protocol
import "fmt"
type NNTPResponse struct {
Code int
Message string
}
func (nr NNTPResponse) String() string {
return fmt.Sprintf("%d %s", nr.Code, nr.Message)
}