mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-24 12:32:17 +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)
|
||
|
}
|