for {
t := time.Now()
fmt.Print(t.Minute(), ":", t.Second(), " ")
testdll.Testf()
time.Sleep(time.Second * 2)
}
package testdll
import (
"fmt"
)
//Testf
func Testf() {
fmt.Println("hello I'm version 1")
}
14:29 hello I'm version 1
14:31 hello I'm version 1
14:33 hello I'm version 1
14:35 hello I'm version 2
14:37 hello I'm version 2
14:39 hello I'm version 2