1
0
mirror of synced 2024-11-22 04:46:05 +03:00

Fix stutter

This commit is contained in:
Harrison 2016-04-14 10:25:48 +10:00
parent b206661b37
commit bc2b82cb33
2 changed files with 5 additions and 5 deletions

View File

@ -23,7 +23,7 @@ func main() {
conf.Parse()
m := messenger.New(messenger.MessengerOptions{
m := messenger.New(messenger.Options{
Verify: *verify,
VerifyToken: *verifyToken,
Token: *pageToken,

View File

@ -12,8 +12,8 @@ const (
WebhookURL = "/webhook"
)
// MessengerOptions are the settings used when creating a Messenger client.
type MessengerOptions struct {
// Options are the settings used when creating a Messenger client.
type Options struct {
// Verify sets whether or not to be in the "verify" mode. Used for
// verifying webhooks on the Facebook Developer Portal.
Verify bool
@ -38,8 +38,8 @@ type Messenger struct {
token string
}
// New creates a new Messenger. You pass in MessengerOptions in order to affect settings.
func New(mo MessengerOptions) *Messenger {
// New creates a new Messenger. You pass in Options in order to affect settings.
func New(mo Options) *Messenger {
m := &Messenger{
mux: http.NewServeMux(),
token: mo.Token,