output

package
v3.3.13 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package output is a generated GoMock package.

Index

Constants

View Source
const (
	Created = "created"
	Deleted = "deleted"
	Updated = "updated"
)

Variables

This section is empty.

Functions

func Errorf

func Errorf(w io.Writer, err error) error

func FormatAndPrint

func FormatAndPrint(f *factory.Factory, id, entity, method string)

FormatAndPrint formats and prints a message indicating the success of an operation, with or without style, depending on the color configuration.

func Printf

func Printf(w io.Writer, msg string)

Types

type ErrorOutput

type ErrorOutput struct {
	GeneralOutput GeneralOutput
	Err           error
}

func (*ErrorOutput) Output

func (o *ErrorOutput) Output() error

type GeneralOutput

type GeneralOutput struct {
	Msg string
	Out io.Writer
}

func (*GeneralOutput) Output

func (o *GeneralOutput) Output()

type MockOutput

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

MockOutput is a mock of Output interface.

func NewMockOutput

func NewMockOutput(ctrl *gomock.Controller) *MockOutput

NewMockOutput creates a new mock instance.

func (*MockOutput) EXPECT

func (m *MockOutput) EXPECT() *MockOutputMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockOutput) Output

func (m *MockOutput) Output() error

Output mocks base method.

type MockOutputMockRecorder

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

MockOutputMockRecorder is the mock recorder for MockOutput.

func (*MockOutputMockRecorder) Output

func (mr *MockOutputMockRecorder) Output() *gomock.Call

Output indicates an expected call of Output.

type Output

type Output interface {
	Output() error
}

Jump to

Keyboard shortcuts

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