utils

package
Version: v0.0.0-...-3cd25b9 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Difference

func Difference(a, b []string) (diff []string)

Set Difference: A - B

func FetchSubmitUrlFromRequest

func FetchSubmitUrlFromRequest(req *http.Request, q *url.Values) (string, error)

Types

type IpData

type IpData struct {
	Ip   string
	Port string
}

func GetForwardedForIpData

func GetForwardedForIpData(r *http.Request) (IpData, error)

func GetRequestIpData

func GetRequestIpData(r *http.Request) (IpData, error)

Source Files

Jump to

Keyboard shortcuts

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