Skip to content

Clean code #3

@dieperid

Description

@dieperid
  • Fix typo to make them more understandable when reading the code

Example :

Rename s to servce

func (s *Service) GetUserByID(ctx context.Context, id string) (*User, error) {
    return s.Repo.GetByID(ctx, id)
}
  • Clean main.go
    • Remove comment, log print, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions