소스 검색

Update 'users.go'

thisnthat 5 년 전
부모
커밋
0ba255207a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)