render

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package render contains functions for displaying the status responses in various formats.

This package contains functions that allow for easy display of the Github Status responses in a human readable table, YAML, or JSON.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(target any, format Format) (string, error)

Render will render the target with the given output type and return it as a string.

Types

type Format

type Format int

Format is the format to render.

const (
	YAML Format = iota
	JSON
	Table
)

func FormatFromString

func FormatFromString(format string) (Format, error)

FormatFromString returns a Format from a string descriptor.

Jump to

Keyboard shortcuts

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