Skip to content

Development

xiaocong edited this page Oct 25, 2018 · 1 revision

Prerequirements

  • Golang 1.11 or above

    gvm is prefered to install golang.

  • IDE: vscode

    Skip the section if you are using goland/vim/emacs.

    Next plugins are prefered for vscode:

    • Go

    • Go Outliner

    • licenser

      Add below config to your vscode project settings, which is to insert license header to source code.

        {
            "licenser.license": "Custom",
            "licenser.customHeader": "Copyright (c) 2018 ContentBox Authors.\nUse of this source code is governed by a MIT-style\nlicense that can be found in the LICENSE file.",
            "licenser.disableAutoHeaderInsertion": false,
        }
      

Lint

Make sure your code should pass code lint via make lint before submit pull request.

Test

make test

Clone this wiki locally