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 ¶
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 ¶
NewLanguage creates a new Language value object
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
Click to show internal directories.
Click to hide internal directories.