TDD-Goland_Example_2

command
v0.0.0-...-7802a6a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2022 License: MIT Imports: 5 Imported by: 0

README

golang-tdd Build Status

Studying the e-book Test-driven development with Go by Yigal Duppen

Compile and run without installing

Enter the repository's root directory and run

go run qrcoded.go

Build

If this repository is checked out in a directory structure organized accordingly to the standard described in the official documentation, the go tool can be used to install and test the code.

In order to build the code, run

go install github.com/golang4dummies/golang-tdd

This will compile the package and generate an executable in $GOPATH/bin.

Alternatively, you can cd into the repository's root with

cd $GOPATH/golang4dummies/golang-tdd

and then simply run

go install

Note that the executable will be named after the repository name, not the Go file.

Run

Install the package, then run it with

$GOPATH/bin/golang-tdd

If $GOPATH/bin has been included in $PATH, as suggested in the official documentation, you can simply run the program with

golang-tdd

Uninstall

Run

go clean -i

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL