rts-sim-module/examples/main.go

18 lines
310 B
Go
Raw Normal View History

2023-09-28 15:38:18 +08:00
package main
import (
2023-10-09 18:07:39 +08:00
"time"
2023-09-28 15:38:18 +08:00
rtss_simulation "joylink.club/rtsssimulation"
"joylink.club/rtsssimulation/repository"
)
func main() {
sim, _ := rtss_simulation.NewSimulation(&repository.Repository{})
sim.StartUp()
2023-10-09 18:07:39 +08:00
sim.SetSpeed(2)
time.Sleep(1 * time.Second)
sim.Close()
time.Sleep(2 * time.Second)
2023-09-28 15:38:18 +08:00
}