format

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: BSD-3-Clause Imports: 22 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

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRows

func GetRows(v any, cols config.Columns, explode bool) ([][]string, error)

Types

type Base64

type Base64 struct{}

func (Base64) Error

func (Base64) Error(ctx context.Context, v any) error

func (Base64) Format

func (b Base64) Format(ctx context.Context, v any) error

type Interface

type Interface interface {
	Format(ctx context.Context, v any) error
	Error(ctx context.Context, v any) error
}

type JSON

type JSON struct{}

func (JSON) Error

func (j JSON) Error(ctx context.Context, v any) error

func (JSON) Format

func (JSON) Format(ctx context.Context, v any) error

type None

type None struct{}

func (None) Error

func (None) Error(ctx context.Context, v any) error

func (None) Format

func (None) Format(ctx context.Context, v any) error

type Single

type Single struct {
	ForFormat Interface
}

func (Single) Error

func (s Single) Error(ctx context.Context, v any) error

func (Single) Format

func (s Single) Format(ctx context.Context, v any) error

type Table

type Table struct {
	Explode, Sort bool
	Columns       config.Columns
}

func (Table) Error

func (Table) Error(ctx context.Context, v any) error

func (Table) Format

func (t Table) Format(ctx context.Context, v any) error

type YAML

type YAML struct{}

func (YAML) Error

func (y YAML) Error(ctx context.Context, v any) error

func (YAML) Format

func (YAML) Format(ctx context.Context, v any) error

Jump to

Keyboard shortcuts

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