Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk-go): attach the Create and GroupInfo doc comments correctly

Yudhi Armyndharis2b545dfe14c2
diff --git a/sdk/go/groups.go b/sdk/go/groups.go
index 677316949..487437e3a 100644
--- a/sdk/go/groups.go
+++ b/sdk/go/groups.go
@@ -41,7 +41,6 @@ func (s *GroupsService) JoinInfo(ctx context.Context, sessionID, code string) (*
return &out, err
}
-// Create creates a group.
// Create makes a new group. It answers the group SUMMARY, not the detail shape Get returns — there is
// no participant list, description, owner or creation time on a create response.
func (s *GroupsService) Create(ctx context.Context, sessionID string, body CreateGroupRequest) (*GroupSummary, error) {
diff --git a/sdk/go/types_group.go b/sdk/go/types_group.go
index 8dc82629d..78a3bc8b4 100644
--- a/sdk/go/types_group.go
+++ b/sdk/go/types_group.go
@@ -57,7 +57,6 @@ type MembershipRequestActionRequest struct {
Participants []string `json:"participants"`
}
-// GroupInfo is the full group detail.
// MemberAddMode is who may add participants to a group.
type MemberAddMode string
@@ -66,6 +65,7 @@ const (
MemberAddAdmins MemberAddMode = "admins"
)
+// GroupInfo is the full group detail.
type GroupInfo struct {
ID string `json:"id"`
Name string `json:"name"`