From 1b69ba4a5fc39d7a46cd7d6a171015c89c9a2a2c Mon Sep 17 00:00:00 2001 From: Lukas Breuer Date: Sat, 11 Nov 2017 19:48:26 +0100 Subject: [PATCH] Format restapi.go with gofmt --- restapi.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/restapi.go b/restapi.go index ebf3f18..3ab9164 100644 --- a/restapi.go +++ b/restapi.go @@ -1575,9 +1575,9 @@ func (s *Session) ChannelInvites(channelID string) (st []*Invite, err error) { func (s *Session) ChannelInviteCreate(channelID string, i Invite) (st *Invite, err error) { data := struct { - MaxAge int `json:"max_age"` - MaxUses int `json:"max_uses"` - Temporary bool `json:"temporary"` + MaxAge int `json:"max_age"` + MaxUses int `json:"max_uses"` + Temporary bool `json:"temporary"` }{i.MaxAge, i.MaxUses, i.Temporary} body, err := s.RequestWithBucketID("POST", EndpointChannelInvites(channelID), data, EndpointChannelInvites(channelID))