code: func (s *AuthenticationService) GetCurrentUser() (*Session, error) {
  	if s == nil {
  		return nil, fmt.Errorf("AUthenticaiton Service is not instantiated")
  	}
  	if s.authType != authTypeSession || s.client.session == nil {
  		return nil, fmt.Errorf("No user is authenticated yet")
  	}
  
  	apiEndpoint := "rest/auth/1/session"
  	req, err := s.client.NewRequest("GET", apiEndpoint, nil)
  	if err != nil {
  		return nil, fmt.Errorf("Could not create request for getting user info : %s", err)
  	}
  
  	resp, err := s.client.Do(req, nil)
  	if err != nil {
  		return nil, fmt.Errorf("Error sending request to get user info : %s", err)
  	}
  	if resp.StatusCode != 200 {
  		return nil, fmt.Errorf("Getting user info failed with status : %d", resp.StatusCode)
  	}
  
  	defer resp.Body.Close()
  	ret := new(Session)
  	data, err := ioutil.ReadAll(resp.Body)
  	if err != nil {
  		return nil, fmt.Errorf("Couldn't read body from the response : %s", err)
  	}
  
  	err = json.Unmarshal(data, &ret)
  
  	if err != nil {
  		return nil, fmt.Errorf("Could not unmarshall received user info : %s", err)
  	}
  
  	return ret, nil
  }
docs: // GetCurrentUser gets the details of the current user.
  //
  // JIRA API docs: https://docs.atlassian.com/jira/REST/latest/#auth/1/session