You are here |
martinheinz.dev | ||
| | | |
www.mathieupassenaud.fr
|
|
| | | | ||
| | | |
www.4async.com
|
|
| | | | ???Mi?osz Smó?ka ???Kevin ?????https://threedots.tech/post/common-anti-patterns-in-go-web-applications/\n????????????????????????????\n???????????????????????????????????????????????????????????????????????????????????????????????????\n????????????Web????????????????????????????????????????????????\n???????????????????????????????????????????????????????????????????????????????????????????\nWeb????????????????????????????????????????????\n???????Go??????????????\n?????? ??????????????????\n?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????\n????????????????????????????????????????????????????????????????????\n??????????????????????????????????????????????????????????????????????????????????????????????\n? ????????? ????????????????????????\n??????????????????????????????????????\n? ?????? ??????????????????????????????????????????\nDRY????? ????????????????????????(Don't Repeat Yourself, DRY)???\n?????????????????????????????????????????: ?????????????????????\n????????????????????????????\n"?????"??????????????????????????DRY?????\n????????????????????????????????DRY???????????????????\n?Go???DRY ??????????Go???????????????????????????\n?????????????????Go????????????????????????????????????\n???????????????????Go??????????????????\nif err != nil { return err } ??????????????????????????DRY????????????????????????????????\n?????????Go?????????????????????DRY???????????\n????????????? Go?????????????????????????DRY???????????????????? ??????????????????????????????\n??????????????User??????\ntype User struct { ID int `json:"id" gorm:"autoIncrement primaryKey"` FirstName string `json:"first_name" validate:"required_without=LastName"` LastName string `json:"last_name" validate:"required_without=FirstName"` DisplayName string `json:"display_name"` Email string `json:"email,omitempty" gorm:"-"` Emails []Email `json:"emails" validate:"required,dive" gorm:"constraint:OnDelete:CASCADE"` PasswordHash string `json:"-"` LastIP string `json:"-"` CreatedAt *time.Time `json:"-"` UpdatedAt *time.Time `json:"-"` } type Email struct { ID int `json:"-" gorm:"primaryKey"` Address string `json:"address" validate:"required,email" gorm:"size:256;uniqueIndex"` Primary bool `json:"primary"` UserID int `json:"-"` } ?????github.com/ThreeDotsLabs/go-web-app-antipatterns/01-coupling/01-tightly-coupled/internal/user.go\n | |
| | | |
dev.ribic.ba
|
|
| | | | How I write HTTP APIs in Go after 3 years | |
| | | |
marketing-dictionary.org
|
|
| | 1:1 marketing 3-firm concentration ratio 4-firm concentration ration 4 Ps 10 Characteristics of an Ideal Metric 80/20 rule ISO 10668 Brand Valuation ISO 20671 Brand Evaluation ISO 20671-3 Geographical Indications See Also Marketing Acts, Regulations & Standards Marketing Abbreviations |