Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Commit 51802b6

Browse files
committedSep 21, 2018
hello: hello, world!
1 parent 5512678 commit 51802b6

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed
 

‎go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module github.com/neild/hello

‎hello.go

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package hello
2+
3+
func Hello() string {
4+
return "Hello, world!"
5+
}

‎hello_test.go

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package hello_test
2+
3+
import (
4+
"testing"
5+
6+
"github.com/neild/hello"
7+
)
8+
9+
func TestHello(t *testing.T) {
10+
if got, want := hello.Hello(), "Hello, world!"; got != want {
11+
t.Errorf("Hello() = %q, want %q", got, want)
12+
}
13+
}

0 commit comments

Comments
 (0)
This repository has been archived.