Skip to content

dixonwhitmire/gotemplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotemplate

A Go project template which includes a build process and unit test.

Dependencies

Quickstart

default recipe

user@mac gotemplate % just

# recipe output
echo "clean target"
clean target
rm -rf ./target
echo "build target"
build target
go build -o target/app cmd/cli/main.go
echo "test target"
test target
go test ./...
?       github.com/dixonwhitmire/gotemplate/cmd/cli     [no test files]
ok      github.com/dixonwhitmire/gotemplate/internal/message    0.364s

test recipe

user@mac gotemplate % just test

# recipe output
echo "test target"
test target
go test ./...
?       github.com/dixonwhitmire/gotemplate/cmd/cli     [no test files]
ok      github.com/dixonwhitmire/gotemplate/internal/message    (cached)

single-test recipe

user@mac gotemplate %  just single-test "^TestGreeting$"

# recipe output
echo "single test target"
single test target
go test -run ^TestGreeting$ ./...
?       github.com/dixonwhitmire/gotemplate/cmd/cli     [no test files]
ok      github.com/dixonwhitmire/gotemplate/internal/message    (cached)

About

Go Project Template

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published