Created
April 15, 2019 19:36
-
-
Save napolux/0d7c7499990af772c4d6d4621570e827 to your computer and use it in GitHub Desktop.
service.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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