Documentation
¶
Overview ¶
Package utils provides common utilities for the use of other packages in oasdiff.
Index ¶
- func Deref[T any](ref *T) any
- func ToKebabCase(s string) string
- type StringSet
- func (stringSet StringSet) Add(s string)
- func (stringSet StringSet) Contains(s string) bool
- func (stringSet StringSet) Copy() StringSet
- func (stringSet StringSet) Empty() bool
- func (stringSet StringSet) Equals(other StringSet) bool
- func (stringSet StringSet) Intersection(other StringSet) StringSet
- func (stringSet StringSet) Minus(other StringSet) StringSet
- func (stringSet StringSet) Plus(other StringSet) StringSet
- func (stringSet StringSet) ToStringList() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Deref ¶ added in v1.30.0
Deref returns the pointed-to value, or nil for a nil pointer. The any return keeps "absent" (nil) distinguishable from a zero value, which a plain *T dereference cannot express.
func ToKebabCase ¶ added in v1.30.0
ToKebabCase converts a camelCase name to kebab-case: maxItems becomes max-items. Characters other than ASCII uppercase pass through unchanged.
Types ¶
type StringSet ¶
type StringSet map[string]struct{}
StringSet is a set of string values
func StringSetFromSlice ¶ added in v1.11.10
StringSetFromSlice creates a StringSet from a string slice
func (StringSet) Intersection ¶
func (StringSet) ToStringList ¶
Click to show internal directories.
Click to hide internal directories.