whatcanGOwrong
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
fmt.Println("hello world!")
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
func TestCurrentDirectory(t *testing.T) {
|
||||
wd, _ := os.Getwd()
|
||||
t.Logf("current directory: %s", wd)
|
||||
}
|
||||
Reference in New Issue
Block a user