Mandamus lies only to compel the performance of a mandatory public duty. It cannot be used to enforce a discretionary duty, a private right, or against the President, Governor, or Chief Justice acting judicially.