github.com/Rookout/GoSDK@v0.1.48/pkg/services/suspender/suspender_unsupported_versions.go (about) 1 //go:build !go1.15 || go1.22 2 // +build !go1.15 go1.22 3 4 package suspender 5 6 type suspenderStub struct { 7 } 8 9 func (s *suspenderStub) StopAll() { 10 suspenderStubPanic() 11 } 12 13 func (s *suspenderStub) ResumeAll() { 14 suspenderStubPanic() 15 } 16 17 func (s *suspenderStub) Stopped() bool { 18 suspenderStubPanic() 19 return false 20 } 21 22 func GetSuspender() Suspender { 23 suspenderStubPanic() 24 return nil 25 } 26 27 func suspenderStubPanic() { 28 panic("Suspender doesn't support this go version!!!!") 29 }