You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package longpoll
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// Failed struct.
|
|
type Failed struct {
|
|
Code int
|
|
}
|
|
|
|
// Error returns the message of a Failed.
|
|
func (e Failed) Error() string {
|
|
return fmt.Sprintf(
|
|
"longpoll: failed code %d",
|
|
e.Code,
|
|
)
|
|
}
|