// List the thing groups in your account.
List the thing groups in your account.
// List the thing groups in your account .
func (c *Client) ListThingGroups(ctx context.Context, params *ListThingGroupsInput, optFns ...func(*Options)) (*ListThingGroupsOutput, error) {
	if params == nil {
		params = &ListThingGroupsInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListThingGroups", params, optFns, addOperationListThingGroupsMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListThingGroupsOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListThingGroups ( ctx context . Context , params * ListThingGroupsInput , optFns ... func ( * Options ) ) ( * ListThingGroupsOutput , error ) { if params == nil { params = & ListThingGroupsInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListThingGroupsMiddlewares ) if err != nil { return nil , err } out := result . ( * ListThingGroupsOutput ) out . ResultMetadata = metadata return out , nil }
List the thing groups in your account.
List the thing groups in your account .