models/user/user.go
exported function Add should have comment or be unexported Open
Open
func Add(user User) (error, User) {
- Exclude checks
exported function Update should have comment or be unexported Open
Open
func Update(user *User) (*User, error) {
- Exclude checks
func parameter userId should be userID Open
Open
func Delete(userId string) (int64, error) {
- Exclude checks
exported function Delete should have comment or be unexported Open
Open
func Delete(userId string) (int64, error) {
- Exclude checks
exported function List should have comment or be unexported Open
Open
func List() (error, []User) {
- Exclude checks
exported function FindCount should have comment or be unexported Open
Open
func FindCount(user User) (int64, error) {
- Exclude checks
exported function Find should have comment or be unexported Open
Open
func Find(user User) (*[]User, error) {
- Exclude checks
error should be the last type when returning multiple items Open
Open
func Add(user User) (error, User) {
- Exclude checks
don't use MixedCaps in package name; userModel should be usermodel Open
Open
package userModel
- Exclude checks
exported function FindOne should have comment or be unexported Open
Open
func FindOne(user User) (*User, error) {
- Exclude checks
error should be the last type when returning multiple items Open
Open
func List() (error, []User) {
- Exclude checks