🇧🇷 CPF validation in Go
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'master' into to-publish

+30 -2
+30
.github/workflows/tests.yml
··· 1 + name: Tests 2 + 3 + on: [pull_request, push] 4 + 5 + jobs: 6 + 7 + build: 8 + name: Build 9 + runs-on: ubuntu-latest 10 + steps: 11 + 12 + - name: Set up Go 1.13 13 + uses: actions/setup-go@v1 14 + with: 15 + go-version: 1.13 16 + id: go 17 + 18 + - name: Check out code into the Go module directory 19 + uses: actions/checkout@v2 20 + 21 + - name: Get dependencies 22 + run: | 23 + go get -v -t -d ./... 24 + if [ -f Gopkg.toml ]; then 25 + curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh 26 + dep ensure 27 + fi 28 + 29 + - name: Build 30 + run: go test
-2
README.md
··· 27 27 } 28 28 ``` 29 29 30 - ## A bit of story and thankfulness 31 - 32 30 I started to learn [Go](https://golang.org/) with [_Learn Go With Tests_](https://quii.gitbook.io/learn-go-with-tests/) and this CPF (Brazilian unique identifier for the Federal Revenue) validation script is actually **my very first lines in Go** (except the ones from the book). I'm sharing it here to get **feedback** ❤️