You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
335 B
25 lines
335 B
2 years ago
|
package cmd
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
type zilch struct{}
|
||
|
|
||
|
func users(args []string) error {
|
||
|
tx, err := readDb()
|
||
|
if err != nil {
|
||
|
return err
|
||
|
}
|
||
|
idMap := map[uint64]zilch{}
|
||
|
|
||
|
for _, r := range tx.Records {
|
||
|
idMap[r.UserId] = zilch{}
|
||
|
}
|
||
|
|
||
|
fmt.Printf("Found %d users\n", len(idMap))
|
||
|
for id := range idMap {
|
||
|
fmt.Println(id)
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|