forked from Crockan/MercuryToolbox
chore(release): prepare public source release
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package demo
|
||||
|
||||
import "context"
|
||||
|
||||
const DefaultLimit = 10
|
||||
|
||||
var SharedName = "mercury"
|
||||
|
||||
type Runner interface {
|
||||
Run(context.Context) error
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
name string
|
||||
}
|
||||
|
||||
func NewService(name string) *Service {
|
||||
return &Service{name: name}
|
||||
}
|
||||
|
||||
func (s *Service) Run(ctx context.Context) error {
|
||||
return s.helper(ctx)
|
||||
}
|
||||
|
||||
func (s *Service) helper(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
Reference in New Issue
Block a user