Skip to content

Instantly share code, notes, and snippets.

@tcnksm
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tcnksm/46a7eefcfe63f2930082 to your computer and use it in GitHub Desktop.
Save tcnksm/46a7eefcfe63f2930082 to your computer and use it in GitHub Desktop.
gore text-fixutures
package include1
import (
"fmt"
"runtime"
)
func hello() string {
return fmt.Sprintf("Hello from %s", runtime.GOOS)
}
package include2
import (
"time"
)
var currentTime = time.Now()

This is test execution.

$ gore -include=include1.go,include2.go
gore version 0.0.0  :help for help
gore> hello()
"Hello from darwin"
gore> currentTime
time.Time{sec:63561082648, nsec:993743413, loc:(*time.Location)(0x14e240)}
gore> runtime.NumCPU()
8
gore> time.August
8
gore>...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment