utl

package
v0.0.0-...-ff8b13d Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestIP

func RequestIP(r *http.Request) string

RequestIP returns the IP of input request. It first checks for proxies through X-FORWARDED-FOR header and returns its value if found, if not it returns the remote address.

func SplitInt64

func SplitInt64(str string, sep string) ([]int64, error)

SplitInt64 splits a string and converts the resulting values to []int64.

Types

This section is empty.

Jump to

Keyboard shortcuts

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