example

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2020 License: MIT Imports: 0 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL