syntax fixes
This commit is contained in:
parent
8e748aaa90
commit
1ce33aa89a
13 changed files with 45 additions and 43 deletions
|
|
@ -58,7 +58,7 @@ type User struct {
|
|||
Locked int
|
||||
}
|
||||
|
||||
type Users []User
|
||||
type Users []*User
|
||||
|
||||
func (u Users) Len() int { return len(u) }
|
||||
func (u Users) Swap(i, j int) { u[i], u[j] = u[j], u[i] }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue