shared

package
v1.11.0 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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