package ref import ( "fmt" "joylink.club/bj-rtsts-server/ats/verify/simulation/wayside/face" ) type DevicePosition[T face.DeviceModeller] struct { Device T Offset int32 } func (dp *DevicePosition[T]) String() string { return fmt.Sprintf("%s-%d", dp.Device.GetIndex(), dp.Offset) }