code: func (c *Client) SlugCreate(appIdentity string, processTypes map[string]string, options *SlugCreateOpts) (*Slug, error) {
  	params := struct {
  		ProcessTypes                 map[string]string `json:"process_types"`
  		BuildpackProvidedDescription *string           `json:"buildpack_provided_description,omitempty"`
  		Commit                       *string           `json:"commit,omitempty"`
  	}{
  		ProcessTypes: processTypes,
  	}
  	if options != nil {
  		params.BuildpackProvidedDescription = options.BuildpackProvidedDescription
  		params.Commit = options.Commit
  	}
  	var slugRes Slug
  	return &slugRes, c.Post(&slugRes, "/apps/"+appIdentity+"/slugs", params)
  }
docs: // Create a new slug. For more information please refer to Deploying Slugs using
  // the Platform API.
  //
  // appIdentity is the unique identifier of the Slug's App. processTypes is the
  // hash mapping process type names to their respective command. options is the
  // struct of optional parameters for this action.