internal

package
v0.0.651 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertYAMLMapKeyTypes

func ConvertYAMLMapKeyTypes(x interface{}, path ...string) (interface{}, error)

This function has been stolen from the OPA codebase, ast/parser.go:2210 for converting yaml decoded types to types that OPA can handle

func Merge

func Merge(a, b any) any

func Must

func Must[T any](value T, err error) T

func ToRawInterface

func ToRawInterface(value any) (any, error)

Types

type TableWriter

type TableWriter struct {
	// contains filtered or unexported fields
}

func MakeTableWriter

func MakeTableWriter(w io.Writer) TableWriter

func (TableWriter) Flush

func (tw TableWriter) Flush()

func (TableWriter) Row

func (tw TableWriter) Row(args ...any)

func (TableWriter) Text

func (tw TableWriter) Text(value string)

func (TableWriter) Textf

func (tw TableWriter) Textf(format string, args ...any)

func (TableWriter) Textln

func (tw TableWriter) Textln(value string)

func (TableWriter) Write

func (tw TableWriter) Write(data []byte) (int, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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