You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/go # cd /go/src/github.com/test
/go/src/github.com/test # vi main.go
main.go
package main
import (
tm "github.com/buger/goterm"
"time"
)
func main() {
tm.Clear() // Clear current screen
for {
// By moving cursor to top-left position we ensure that console output
// will be overwritten each time, instead of adding new.
tm.MoveCursor(1,1)
tm.Println("Current Time:", time.Now().Format(time.RFC1123))
tm.Flush() // Call it every time at the end of rendering
time.Sleep(time.Second)
}
}
then run it
/go/src/github.com/test # go run main.go
but it not work
like this
/go/src/github.com/test # go run main.go
asdoifjaof
weirjqoweirjoq
^Csignal: interrupt
/go/src/github.com/test #
The text was updated successfully, but these errors were encountered:
I use docker container run golang.
in container:
main.go
then run it
but it not work
like this
The text was updated successfully, but these errors were encountered: