mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-14 01:01:01 +00:00
13 lines
184 B
Go
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)
|
||
|
}
|