code: func (actor *Actor) GetApplicationPackages(appName string, spaceGUID string) ([]Package, Warnings, error) {
  	app, allWarnings, err := actor.GetApplicationByNameAndSpace(appName, spaceGUID)
  	if err != nil {
  		return nil, allWarnings, err
  	}
  
  	ccv3Packages, warnings, err := actor.CloudControllerClient.GetPackages(
  		ccv3.Query{Key: ccv3.AppGUIDFilter, Values: []string{app.GUID}},
  	)
  	allWarnings = append(allWarnings, warnings...)
  	if err != nil {
  		return nil, allWarnings, err
  	}
  
  	var packages []Package
  	for _, ccv3Package := range ccv3Packages {
  		packages = append(packages, Package(ccv3Package))
  	}
  
  	return packages, allWarnings, nil
  }
docs: // GetApplicationPackages returns a list of package of an app.