Skip to content

Instantly share code, notes, and snippets.

@sidneyw
Created August 17, 2021 01:33
Show Gist options
  • Save sidneyw/052aa14eb1be33b9003bf3c6e3d40fb2 to your computer and use it in GitHub Desktop.
Save sidneyw/052aa14eb1be33b9003bf3c6e3d40fb2 to your computer and use it in GitHub Desktop.
type Client interface {
GetValue(ctx context.Context, name Key, defaultValue interface{}) (interface{}, error)
GetIntValue(ctx context.Context, name Key, defaultValue int) (int, error)
GetIntArrayValue(ctx context.Context, name Key, defaultValue []int) ([]int, error)
GetBoolValue(ctx context.Context, name Key, defaultValue bool) (bool, error)
GetStringValue(ctx context.Context, name Key, defaultValue string) (string, error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment