output

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: BSD-3-Clause Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

Index

Constants

View Source
const (
	Dark = iota
	Light
)
View Source
const DefaultStyle = "github"

Variables

This section is empty.

Functions

func InjectOutput added in v0.0.18

func InjectOutput(w io.Writer)

func Styles added in v0.0.32

func Styles() []string

Types

type Outputter added in v0.0.10

type Outputter interface {
	Output(ctx context.Context, fetch read.FetchPage) error
	Error(ctx context.Context, v any) error
}

func NewFromFlags

func NewFromFlags(fs *pflag.FlagSet, out, contentField string, cols config.Columns, explode, sort bool) (format.Interface, Outputter, error)

type Paginated added in v0.0.10

type Paginated struct {
	Read    read.Interface
	Format  format.Interface
	Filters []filter.Interface
	WriteTo string
	// contains filtered or unexported fields
}

func (*Paginated) Error added in v0.0.10

func (p *Paginated) Error(ctx context.Context, v any) error

func (*Paginated) Output added in v0.0.10

func (p *Paginated) Output(ctx context.Context, fetch read.FetchPage) (err error)

Directories

Path Synopsis
SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>
SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>
SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause
SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause
SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause
SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com> SPDX-License-Identifier: BSD-3-Clause

Jump to

Keyboard shortcuts

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