handlers

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderHandler

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

BuilderHandler manages the building process of the project structure. It interacts with the domain.Builder to create directories and files based on templates.

func NewBuilderHandler

func NewBuilderHandler(builder *domain.Builder) *BuilderHandler

NewBuilderHandler creates and returns a new BuilderHandler instance.

Parameters:

  • builder: A pointer to the domain.Builder instance.

Returns:

A pointer to a BuilderHandler.

func (*BuilderHandler) Build

func (h *BuilderHandler) Build() error

Build initiates the building process by applying templates and creating directories and files as defined in the Builder's data.

Returns:

An error if the build process fails, otherwise nil.

Jump to

Keyboard shortcuts

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