Discover Packages
github.com/anz-bank/go-course
09_json
kasunfdo
directory
Version:
v0.0.0-...-cf576ff
Opens a new window with list of versions in this module.
Published: Jul 29, 2020
License: Apache-2.0
Opens a new window with license information.
README
README
¶
Puppy Store - An in-memory store for puppies
Overview
Puppy Store is a simple in-memory store for Puppy objects. Puppy Store
is implemented with CRUD methods for creating, reading, updating, and deleting puppies in puppy store.
Prerequisites
Build, execute, test, lint
Build
go build -o puppystore cmd/puppy-server/main.go
Execute
./puppystore
Test
go test ./...
gofmt -w .
goimports -w .
golangci-lint run
Review unit test coverage
go test -coverprofile=coverage.out ./... && go tool cover -html=coverage.out
Expand ▾
Collapse ▴
Click to show internal directories.
Click to hide internal directories.