Last active
February 10, 2023 08:42
-
-
Save manakuro/d87c9b67f604eceb77e9ab2fcac25693 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package presenter | |
import ( | |
"golang-clean-architecture/domain/model" | |
"golang-clean-architecture/usecase/presenter" | |
) | |
type userPresenter struct{} | |
func NewUserPresenter() presenter.UserPresenter { | |
return &userPresenter{} | |
} | |
func (up *userPresenter) ResponseUsers(us []*model.User) []*model.User { | |
for _, u := range us { | |
u.Name = "Mr." + u.Name | |
} | |
return us | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment