Skip to content

Instantly share code, notes, and snippets.

@napolux
Created April 15, 2019 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save napolux/0d7c7499990af772c4d6d4621570e827 to your computer and use it in GitHub Desktop.
Save napolux/0d7c7499990af772c4d6d4621570e827 to your computer and use it in GitHub Desktop.
service.go
package napodate
import "context"
// Service provides some "date capabilities" to your application
type Service interface {
Status(ctx context.Context) (string, error)
Get(ctx context.Context) (string, error)
Validate(ctx context.Context, date string) (bool, error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment