Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrorProperty = "Property" ErrorMessage = "Message" )
エラー用の名称。
View Source
const ( TestName = "testName" TestFeature = "testFeature, testFeature, testFeature, testFeature, testFeature, testFeature, testFeature" TestDBSomeErr = "DB some error" )
テスト用の定数。
View Source
const ( DBMethodCreate = "Create" DBMethodList = "List" DBMethodRead = "Read" DBMethodUpdate = "Update" DBMethodDelete = "Delete" )
DBの操作。
View Source
const (
ModelNameProgrammingLang = "ProgrammingLang"
)
モデル名。
View Source
const (
NameShouldBeMoreThanOneUnderTheTwenty = "Length of Name should be 0 < name < 21"
)
エラー系。
View Source
const (
PropertyName = "Name"
)
プロパティの名称。
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlreadyExistError ¶
AlreadyExistError は、既に存在することを表すエラー。
type InvalidParameterError ¶
InvalidParameterError は、Parameterが不適切な場合のエラー。
func (*InvalidParameterError) Error ¶
func (e *InvalidParameterError) Error() string
Error は、エラー文を返す。
type InvalidPropertyError ¶
InvalidPropertyError は、Propertyが不適切な場合のエラー。
type NoSuchDataError ¶
NoSuchDataError は、データが存在しないことを表すエラー。
type ProgrammingLang ¶
type ProgrammingLang struct { ID int `json:"id"` Name string `json:"name"` Feature string `json:"feature"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
ProgrammingLang は、プログラミング言語を表す。
func CreateProgrammingLangs ¶
func CreateProgrammingLangs(num int) []*ProgrammingLang
CreateProgrammingLangs は、引数で与えられた数だけProgrammingLangを生成し、返す。
type RequiredError ¶
type RequiredError struct {
Property string
}
RequiredError は、必要なものが存在しない場合のエラー。
Click to show internal directories.
Click to hide internal directories.