mirror of
https://github.com/foomo/sesamy-go.git
synced 2025-10-16 12:35:43 +00:00
16 lines
211 B
Go
16 lines
211 B
Go
package mpv2
|
|
|
|
type Consent string
|
|
|
|
const (
|
|
ConsentDenied Consent = "DENIED"
|
|
ConsentGranted Consent = "GRANTED"
|
|
)
|
|
|
|
func ConsentText(v bool) Consent {
|
|
if v {
|
|
return ConsentGranted
|
|
}
|
|
return ConsentDenied
|
|
}
|