// Gets information about one or more branches in a repository.
Gets information about one or more branches in a repository.
// Gets information about one or more branches in a repository .
func (c *Client) ListBranches(ctx context.Context, params *ListBranchesInput, optFns ...func(*Options)) (*ListBranchesOutput, error) {
	if params == nil {
		params = &ListBranchesInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListBranches", params, optFns, addOperationListBranchesMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListBranchesOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListBranches ( ctx context . Context , params * ListBranchesInput , optFns ... func ( * Options ) ) ( * ListBranchesOutput , error ) { if params == nil { params = & ListBranchesInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListBranchesMiddlewares ) if err != nil { return nil , err } out := result . ( * ListBranchesOutput ) out . ResultMetadata = metadata return out , nil }
Gets information about one or more branches in a repository.
Gets information about one or more branches in a repository .