Update typeprint.go

This commit is contained in:
Elliott Pardee 2015-06-07 03:59:45 -04:00
parent 6f6a1e5a88
commit ec504a1863

View File

@ -1,18 +1 @@
package main
import (
"fmt"
"time"
)
func typeprint(s string) {
for _, j := range s {
if string(j) == "\n" {
fmt.Printf("\n")
} else {
fmt.Printf("%c", j)
}
time.Sleep(time.Millisecond * time.Duration(10))
}
}