I am not familiar with go lang, so this are my first steps.
I tried to create a small program which shall send within a defined interval strings to the remote part.
Therefore i included time package and wanted to create a ticker:
func (d *helloworld) OnStart() {
// Use this method to do something when this skill is starting.
ticker := time.newTicker(1000 * time.Millisecond)
go func() {
for t:= range ticker.C {
fmt.Println("Tick at ", t)
sendString("Tick at ", t)
}
}
}
but i always get the error while building
cannot refer to unexported name time.newTicker
Does the go implementation on the hexa include only a subset of time package?