Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#75·go-clean-arch

accept interface, return pointer struct

Author: najibjodiansyahCreated Apr 24, 2023Updated Apr 24, 2023

when creating a constructor in the repository and use case, besides returning an interface, why don't we return the pointer of a struct? any concern about it? maybe in performance or something else?

Source: bxcodec/go-clean-arch

View original on GitHubView discussion on GitHub