thisnthat 5 rokov pred
rodič
commit
0ba255207a
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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)