initialize

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Overview

Package initialize is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(c *gofr.Context) (interface{}, error)

Init creates a basic layout for a project

Types

type Handler

type Handler struct {
}

func (Handler) Chdir

func (h Handler) Chdir(dir string) error

Chdir changes the current working directory to the named directory

func (Handler) Create

func (h Handler) Create(name string) (*os.File, error)

Create creates or truncates a file the specified file name

func (Handler) Help

func (h Handler) Help() string

Help returns a formatted string containing usage instructions, flags, examples and a description

func (Handler) Mkdir

func (h Handler) Mkdir(name string, perm os.FileMode) error

Mkdir creates a new directory with the specified name

type MockfileSystem added in v1.0.1

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

MockfileSystem is a mock of fileSystem interface.

func NewMockfileSystem added in v1.0.1

func NewMockfileSystem(ctrl *gomock.Controller) *MockfileSystem

NewMockfileSystem creates a new mock instance.

func (*MockfileSystem) Chdir added in v1.0.1

func (m *MockfileSystem) Chdir(dir string) error

Chdir mocks base method.

func (*MockfileSystem) Create added in v1.0.1

func (m *MockfileSystem) Create(name string) (*os.File, error)

Create mocks base method.

func (*MockfileSystem) EXPECT added in v1.0.1

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

func (*MockfileSystem) Mkdir added in v1.0.1

func (m *MockfileSystem) Mkdir(name string, perm os.FileMode) error

Mkdir mocks base method.

type MockfileSystemMockRecorder added in v1.0.1

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

MockfileSystemMockRecorder is the mock recorder for MockfileSystem.

func (*MockfileSystemMockRecorder) Chdir added in v1.0.1

func (mr *MockfileSystemMockRecorder) Chdir(dir interface{}) *gomock.Call

Chdir indicates an expected call of Chdir.

func (*MockfileSystemMockRecorder) Create added in v1.0.1

func (mr *MockfileSystemMockRecorder) Create(name interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockfileSystemMockRecorder) Mkdir added in v1.0.1

func (mr *MockfileSystemMockRecorder) Mkdir(name, perm interface{}) *gomock.Call

Mkdir indicates an expected call of Mkdir.

Jump to

Keyboard shortcuts

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