Browse Source

Update 'users.go'

thisnthat 5 years ago
parent
commit
0ba255207a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      users.go

+ 1 - 1
users.go

@@ -43,7 +43,7 @@ func GetUser(config APIConfig, username string) (User, error) {
 	return result.User, nil
 }
 
-func getUserByID(config APIConfig, userID int) (User, error) {
+func GetUserByID(config APIConfig, userID int) (User, error) {
 	url := fmt.Sprintf("%s/admin/users/%d.json", config.Endpoint, userID)
 
 	req, _ := newGetRequest(config, url)