func Transient(s *ServiceSpecification) {
	s.svctype = transient
}
Transient services are restarted only when panic.
package supervisor
import (
	"context"
	"fmt"
	"log"
	"sync"
	"time"
)
type processFailure func()
const AlwaysRestart = -1
type serviceType int
const (
	permanent serviceType = iota
	transient
	temporary
)
type ServiceSpecification struct {
	svc     Service
	svctype serviceType
}
type ServiceOption func(*ServiceSpecification)
func Permanent(s *ServiceSpecification) {
	s.svctype = permanent
}