var CmdFakeGitServer … func hello(w http.ResponseWriter, r *http.Request) { … } // When doing `git clone localhost:8000`, you will clone an empty git repo named "8000" on local. // You can also use `git clone localhost:8000 my-repo-name` to rename that repo. func main(cmd *cobra.Command, args []string) { … }