File tree Expand file tree Collapse file tree 6 files changed +58
-1
lines changed
Expand file tree Collapse file tree 6 files changed +58
-1
lines changed Original file line number Diff line number Diff line change 1+ # https://github.com/github/gitignore/blob/main/Go.gitignore
2+
3+ # If you prefer the allow list template instead of the deny list, see community template:
4+ # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
5+ #
6+ # Binaries for programs and plugins
7+ * .exe
8+ * .exe~
9+ * .dll
10+ * .so
11+ * .dylib
12+
13+ # Test binary, built with `go test -c`
14+ * .test
15+
16+ # Output of the go coverage tool, specifically when used with LiteIDE
17+ * .out
18+
19+ # Dependency directories (remove the comment below to include it)
20+ # vendor/
21+
22+ # Go workspace file
23+ go.work
24+ go.work.sum
25+
26+ # env file
27+ .env
Original file line number Diff line number Diff line change 33
44 inputs . nixpkgs . url = "github:NixOS/nixpkgs/nixpkgs-unstable" ;
55
6- outputs = { self , nixpkgs } :
6+ outputs = { nixpkgs , ... } :
77 let
88 forAllSystems = nixpkgs . lib . genAttrs nixpkgs . lib . systems . flakeExposed ;
99 in
Original file line number Diff line number Diff line change 1+ module github.com/minizilla/go-project
2+
3+ go 1.22.1
4+
5+ require github.com/minizilla/testr v0.4.0 // indirect
Original file line number Diff line number Diff line change 1+ github.com/minizilla/testr v0.4.0 h1:pHy2U8TFgpBpQS15ZMqQS3h2/msyZ0GKSpGW6xMBabA =
2+ github.com/minizilla/testr v0.4.0 /go.mod h1:DdZPGzN8GgQbC2QZ24W/BaWI88xCKUKQ6YLcV/g3hvQ =
Original file line number Diff line number Diff line change 1+ package main
2+
3+ import "fmt"
4+
5+ func greet () string {
6+ return "Hello, World!"
7+ }
8+
9+ func main () {
10+ fmt .Println (greet ())
11+ }
Original file line number Diff line number Diff line change 1+ package main
2+
3+ import (
4+ "testing"
5+
6+ "github.com/minizilla/testr"
7+ )
8+
9+ func TestGreet (t * testing.T ) {
10+ is := testr .New (t )
11+ is .Equal (greet (), "Hello, World!" )
12+ }
You can’t perform that action at this time.
0 commit comments