Documentation
¶
Overview ¶
example.go file
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUser ¶
func CurrentUser() string
CurrentUser returns the current username of the logged in user.
Examples:
fmt.Println(CurrentUser())
if IsLoggedIn() {
fmt.Println(CurrentUser())
}
func IsLoggedIn ¶
func IsLoggedIn() bool
IsLoggedIn returns true if the current user has access to the service.
Example:
if IsLoggedIn() {
fmt.Println("You are logged in")
}
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.