shared

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyValue      = errors.New("value cannot be empty")
	ErrInvalidLanguage = errors.New("invalid language")
	ErrInvalidType     = errors.New("invalid project type")
	ErrInvalidArch     = errors.New("invalid architecture")
)

Domain errors

Functions

func ErrInvalidInput

func ErrInvalidInput(msg string) error

ErrInvalidInput crea un error de input inválido con mensaje custom

Types

type Architecture

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

Architecture represents an architecture pattern value object

func NewArchitecture

func NewArchitecture(value string) (Architecture, error)

NewArchitecture creates a new Architecture value object

func (Architecture) String

func (a Architecture) String() string

func (Architecture) Value

func (a Architecture) Value() string

type Language

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

Language represents a programming language value object

func NewLanguage

func NewLanguage(value string) (Language, error)

NewLanguage creates a new Language value object

func (Language) String

func (l Language) String() string

func (Language) Value

func (l Language) Value() string

type ProjectDescription

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

ProjectDescription represents a project description value object

func NewProjectDescription

func NewProjectDescription(value string) (ProjectDescription, error)

NewProjectDescription creates a new ProjectDescription value object

func (ProjectDescription) String

func (d ProjectDescription) String() string

func (ProjectDescription) Value

func (d ProjectDescription) Value() string

type ProjectName

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

ProjectName represents a project name value object

func NewProjectName

func NewProjectName(value string) (ProjectName, error)

NewProjectName creates a new ProjectName value object

func (ProjectName) String

func (p ProjectName) String() string

func (ProjectName) Value

func (p ProjectName) Value() string

type ProjectType

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

ProjectType represents a project type value object

func NewProjectType

func NewProjectType(value string) (ProjectType, error)

NewProjectType creates a new ProjectType value object

func (ProjectType) String

func (p ProjectType) String() string

func (ProjectType) Value

func (p ProjectType) Value() string

Jump to

Keyboard shortcuts

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