go-course
所属分类:编程语言基础
开发工具:GO
文件大小:0KB
下载次数:0
上传日期:2020-07-31 04:35:55
上 传 者:
sh-1993
说明: 围棋编程语言课程
(Go Programming Language Course)
文件列表:
.golangci.yml (127, 2020-07-28)
.travis.yml (484, 2020-07-28)
00_hello_world/ (0, 2020-07-28)
00_hello_world/juliaogris/ (0, 2020-07-28)
00_hello_world/juliaogris/main.go (137, 2020-07-28)
00_hello_world/juliaogris/main_test.go (304, 2020-07-28)
01_fib/ (0, 2020-07-28)
01_fib/CameronSchafer/ (0, 2020-07-28)
01_fib/CameronSchafer/fib.go (565, 2020-07-28)
01_fib/CameronSchafer/fib_test.go (1273, 2020-07-28)
01_fib/Jake88/ (0, 2020-07-28)
01_fib/Jake88/main.go (760, 2020-07-28)
01_fib/Jake88/main_test.go (1130, 2020-07-28)
01_fib/ailyntang/ (0, 2020-07-28)
01_fib/ailyntang/fib.go (504, 2020-07-28)
01_fib/ailyntang/fib_test.go (2697, 2020-07-28)
01_fib/alanhillgemann/ (0, 2020-07-28)
01_fib/alanhillgemann/main.go (452, 2020-07-28)
01_fib/alanhillgemann/main_test.go (1736, 2020-07-28)
01_fib/alextmz/ (0, 2020-07-28)
01_fib/alextmz/main.go (260, 2020-07-28)
01_fib/alextmz/main_test.go (887, 2020-07-28)
01_fib/alfredxiao/ (0, 2020-07-28)
01_fib/alfredxiao/main.go (561, 2020-07-28)
01_fib/alfredxiao/main_test.go (1140, 2020-07-28)
01_fib/brnbke/ (0, 2020-07-28)
01_fib/brnbke/main.go (774, 2020-07-28)
01_fib/brnbke/main_test.go (1394, 2020-07-28)
** (0, 2020-07-28)
** (418, 2020-07-28)
** (950, 2020-07-28)
01_fib/cuminandpaprika/ (0, 2020-07-28)
01_fib/cuminandpaprika/main.go (1022, 2020-07-28)
01_fib/cuminandpaprika/main_test.go (2175, 2020-07-28)
01_fib/davidbroughsmyth/ (0, 2020-07-28)
... ...
# Go Training
[![Build Status](https://travis-ci.com/anz-bank/go-course.svg?branch=master)](https://travis-ci.com/anz-bank/go-course)
[![Coverage](https://codecov.io/gh/anz-bank/go-course/branch/master/graph/badge.svg)](https://codecov.io/gh/anz-bank/go-course)
[![GolangCI](https://golangci.com/badges/github.com/anz-bank/go-course.svg)](https://golangci.com/r/github.com/anz-bank/go-course)
[Go Course](http://go-course.org) lab assignments repository.
## Prerequisites
- Install `go 1.12` according to [official installation instruction](https://golang.org/doc/install)
- Clone this project outside your `$GOPATH` to enable [Go Modules](https://github.com/golang/go/wiki/Modules)
- Install `golangci-lint` according to [instructions](https://github.com/golangci/golangci-lint#local-installation)
## 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](https://chris.beams.io/posts/git-commit/)
- 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
近期下载者:
相关文件:
收藏者: