Skip to content

Commit

Permalink
added hello world
Browse files Browse the repository at this point in the history
  • Loading branch information
PeanutBrrutter committed May 9, 2024
1 parent bf5e4fc commit 943d701
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module EduSync

go 1.22.3

require github.com/franela/goblin v0.0.0-20211003143422-0a4f594942bf
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github.com/franela/goblin v0.0.0-20211003143422-0a4f594942bf h1:NrF81UtW8gG2LBGkXFQFqlfNnvMt9WdB46sfdJY4oqc=
github.com/franela/goblin v0.0.0-20211003143422-0a4f594942bf/go.mod h1:VzmDKDJVZI3aJmnRI9VjAn9nJ8qPPsN1fqzr9dqInIo=
5 changes: 5 additions & 0 deletions hello.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package main

func hello() string {
return "Hello World!"
}
16 changes: 16 additions & 0 deletions hello_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package main

import (
"testing"

. "github.com/franela/goblin"
)

func TestHello(t *testing.T) {
g := Goblin(t)
g.Describe("Hello", func() {
g.It("Should print hello world", func() {
g.Assert(hello()).Equal("Hello World!")
})
})
}

0 comments on commit 943d701

Please sign in to comment.