github.com/hellobchain/third_party@v0.0.0-20230331131523-deb0478a2e52/go-chi/chi/CONTRIBUTING.md (about)

     1  # Contributing
     2  
     3  ## Prerequisites
     4  
     5  1. [Install Go][go-install].
     6  2. Download the sources and switch the working directory:
     7  
     8      ```bash
     9      go get -u -d github.com/go-chi/chi
    10      cd $GOPATH/src/github.com/go-chi/chi
    11      ```
    12  
    13  ## Submitting a Pull Request
    14  
    15  A typical workflow is:
    16  
    17  1. [Fork the repository.][fork] [This tip maybe also helpful.][go-fork-tip]
    18  2. [Create a topic branch.][branch]
    19  3. Add tests for your change.
    20  4. Run `go test`. If your tests pass, return to the step 3.
    21  5. Implement the change and ensure the steps from the previous step pass.
    22  6. Run `goimports -w .`, to ensure the new code conforms to Go formatting guideline.
    23  7. [Add, commit and push your changes.][git-help]
    24  8. [Submit a pull request.][pull-req]
    25  
    26  [go-install]: https://golang.org/doc/install
    27  [go-fork-tip]: http://blog.campoy.cat/2014/03/github-and-go-forking-pull-requests-and.html
    28  [fork]: https://help.github.com/articles/fork-a-repo
    29  [branch]: http://learn.github.com/p/branching.html
    30  [git-help]: https://guides.github.com
    31  [pull-req]: https://help.github.com/articles/using-pull-requests