common

package
v0.1.1-0...-e795639 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(name string) bool

FileExists checks if a file exists

func Find

func Find(slice []string, val string) bool

Find takes a slice and looks for an element in it. Returns a bool.

func IsIPAllowed

func IsIPAllowed(req *http.Request, allowedIPs []string) bool

IsIPAllowed checks if remote IP is in a slice of allowedIPs

Types

This section is empty.

Jump to

Keyboard shortcuts

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