Giter Club home page Giter Club logo

go-coding's Introduction

go-coding

This is a project for Golang exercises.

Code Coverage GoDoc Build Status Go ReportCard

Project Structure


Introduction


Using Docker

Installing Go may not be needed if you choose to use Docker. With running a go-coding container, you can clone this repo at any location on your disk, for example $HOME/projects, without having to set $GOPATH. And you can still access (e.g. for editing) the source code locally.

```
# assume in your projects folder
cd $HOME/projects
git clone https://github.com/dockerian/go-coding.git
cd go-coding
```

To build and run in docker container, see here.


Build, test and run

The Makefile has included build, test, run targets. For example, to build, simply change to the project directory and run

make build # or ./build.sh

or to run tests

make test  # or ./run.sh test


End-to-end tests

  • MessageSender test
    • In order to run the test, inject environment variables to set user, pass, recipient, e.g.

      MAIL_TO='[email protected]' \
      MAIL_USER='[email protected]' MAIL_PASS='pass!wd' \
      make e2e
      

      Default mail server (MAIL_HOST): smtp.office365.com.
      Default auth: MAIL_TLS=true (otherwise using just LoginAuth)
      Default sender (MAIL_USER): [email protected].
      And default recipient (MAIL_TO): [email protected].


Documentation

This project uses godocdown and $(DOC_PACKAGES) in Makefile to generate documentations for some library packages

make doc


Learning Go


Code Coverage GoDoc Build Status Go ReportCard

go-coding's People

Contributors

jasonzhuyx avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.