Documentation
¶
Overview ¶
SPDX-FileCopyrightText: (C) 2025 Intel Corporation SPDX-License-Identifier: Apache-2.0
Index ¶
- func FilterItems[T any](items []T, filter string, filterFunc func(T, *Filter) bool) ([]T, error)
- func MatchSubstring(target *string, substring string) bool
- func OrderItems[T any](items []T, orderBy string, orderFunc func(T, T, *OrderBy) bool) ([]T, error)
- func PaginateItems[T any](items []T, pageSize, offset int) (*[]T, error)
- func ValidateParams(params any) (pageSize, offset *int, orderBy, filter *string, err error)
- type Filter
- type OrderBy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterItems ¶
func MatchSubstring ¶
MatchSubstring checks if the target string contains the substring.
func OrderItems ¶
func PaginateItems ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.