rts-sim-module/examples/main.go

18 lines
310 B
Go

package main
import (
"time"
rtss_simulation "joylink.club/rtsssimulation"
"joylink.club/rtsssimulation/repository"
)
func main() {
sim, _ := rtss_simulation.NewSimulation(&repository.Repository{})
sim.StartUp()
sim.SetSpeed(2)
time.Sleep(1 * time.Second)
sim.Close()
time.Sleep(2 * time.Second)
}