Coder Social home page Coder Social logo

go-course's Introduction

Go Training

Build Status Coverage GolangCI

Go Course lab assignments repository.

Prerequisites

Build, execute, test, lint

Run the hello-world sample with

go run 00_hello_world/juliaogris/main.go

Alternative build and execute a binary with

go build -o hello_world ./00_hello_world/juliaogris
./hello_world

Test it with

go test ./...

Lint it with

golangci-lint run

Review coverage with

go test -coverprofile=coverage.out ./... && go tool cover -html=coverage.out

Pre-PR checklist

  • Ensure your source code changes
    • Build
    • Test
    • Lint
    • Have 100% test coverage
  • Ensure good commit messages
    • Separate subject from body with a blank line
    • Limit the subject line to 60 characters
    • Use the imperative mood in the subject line
    • Do not end the subject line with a period
    • Wrap the body at 80 characters
    • Use the body to explain what and why vs. how
    • Use git rebase -i COMMIT_HASH to rework your commits if necessary
  • Fill in PR description and reference an Issue for instance with #6
  • Review the "Files changed" section of your PR
  • "Think of the reviewer: your code needs to be reviewable and that should be a prime concern when writing your code, commits and PRs." (@camh-anz)
  • Review a colleague's PR and add a link to the review in your own PR description

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.