mirror of
https://github.com/foomo/sesamy-go.git
synced 2025-10-16 12:35:43 +00:00
16 lines
234 B
Go
16 lines
234 B
Go
package session
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
func IsGTMDebug(r *http.Request) bool {
|
|
_, err := r.Cookie("gtm_debug")
|
|
return err == nil
|
|
}
|
|
|
|
func IsGTMPreview(r *http.Request) bool {
|
|
_, err := r.Cookie("gtm_preview")
|
|
return err == nil
|
|
}
|