utils

package
v0.4.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasOption added in v0.3.0

func HasOption(options string, target string) bool

func Int32PtrToString added in v0.3.0

func Int32PtrToString(v *int32) string

func OptionalBool added in v0.3.0

func OptionalBool(b bool) *bool

func OptionalString added in v0.3.0

func OptionalString(s string) *string

Helpers

func ParseColumnsToLower added in v0.4.3

func ParseColumnsToLower(columns string) []string

func ParseYAMLFile added in v0.3.0

func ParseYAMLFile[T any](filePath string, out *T) error

ParseYAMLFile reads YAML file and unmarshals into provided struct pointer

func PrintRepos added in v0.2.0

func PrintRepos(repos []models.ExtendedRepository, columns []string)

PrintRepos prints a slice of Repository according to selected columns

func PrintStructured added in v0.3.0

func PrintStructured(name string, data interface{}, format string, columns string) error

PrintStructured prints data in JSON, YAML, or plain table format

func SafeInterface added in v0.3.0

func SafeInterface(v interface{}) string

func SafeValue added in v0.4.1

func SafeValue[T any](v *T) T

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL