mirror of
https://github.com/gfleury/go-bitbucket-v1.git
synced 2025-04-04 17:00:12 -05:00
Adding GetUserWithMetadataResponse
This commit is contained in:
parent
254a11e522
commit
ffb767fdb8
@ -470,6 +470,13 @@ func GetContentResponse(r *APIResponse) (Content, error) {
|
||||
return c, err
|
||||
}
|
||||
|
||||
// GetUserWithMetadataResponse casts users into structure
|
||||
func GetUserWithMetadataResponse(r *APIResponse) (UserWithMetadata, error) {
|
||||
var c UserWithMetadata
|
||||
err := mapstructure.Decode(r.Values, &c)
|
||||
return c, err
|
||||
}
|
||||
|
||||
// GetUsersResponse casts users into structure
|
||||
func GetUsersResponse(r *APIResponse) ([]User, error) {
|
||||
var c []User
|
||||
|
Loading…
x
Reference in New Issue
Block a user