This repository has been archived on 2025-09-01. You can view files and clone it, but cannot push or open issues or pull requests.

17 lines
241 B
Go

package service
import "fmt"
type Service interface {
Name() string
Use() interface{}
}
type ErrServiceNotFound struct {
Name string
}
func (e ErrServiceNotFound) Error() string {
return fmt.Sprintf("service %s not found", e.Name)
}