Use named returns for the code style consistency

This commit is contained in:
Nikita Tokarchuk
2020-07-13 03:12:39 +02:00
parent 9cf3551c20
commit 72e74a65b6
23 changed files with 145 additions and 146 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ type Primary struct {
}
// GetID returns an _id
func (p *Primary) GetID() string {
func (p *Primary) GetID() (id string) {
return p.ID
}