mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-25 04:42:18 +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)
|
||
|
}
|