package bitbucket type Users struct { c *Client SSHKeys *SSHKeys users } func (u *Users) Get(t string) (*User, error) { urlStr := u.c.GetApiBaseURL() + "/users/" + t + "/" response, err := u.c.execute("GET", urlStr, "") if err != nil { return nil, err } return decodeUser(response) } func (u *Users) Followers(t string) (interface{}, error) { urlStr := u.c.GetApiBaseURL() + "/users/" + t + "/followers" return u.c.execute("GET", urlStr, "") } func (u *Users) Following(t string) (interface{}, error) { urlStr := u.c.GetApiBaseURL() + "/users/" + t + "/following" return u.c.execute("GET", urlStr, "") } func (u *Users) Repositories(t string) (interface{}, error) { urlStr := u.c.GetApiBaseURL() + "/users/" + t + "/repositories" return u.c.execute("GET", urlStr, "") }