code: func (obj *Doc) Publish(ctx context.Context, streamId string, name string) error {
  	err := obj.rpc(ctx, "Publish", nil, streamId, name)
  	return err 
  }
docs: // Publishes an app.
  // All app objects are published. Generic objects, bookmarks, dimensions and measures inside the app are published.
  // An app can only be published once and cannot be published to more than one stream.
  //
  // Parameters:
  //
  // ◾ streamId   -   Identifier of the stream.
  //
  // ◾ name       -   Name of the published app.
  // If this parameter is not set, the engine automatically gives a new name to the published app.
  //