Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Valid = func(authorization []string) bool { if len(authorization) < 1 { return false } token := strings.TrimPrefix(authorization[0], "Bearer ") if token != "some-secret-token" { return false } return true }
可自定义
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.