util

package
v0.0.0-...-39b8527 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debugging bool

Debugging is a variable to tell whether lighthouse is in debug mode

Functions

func CloseBody

func CloseBody(responseBody io.ReadCloser)

CloseBody closes the body of an http response

func CloseRows

func CloseRows(rows *sql.Rows)

CloseRows Closes SQL Rows for custom SQL queries.

func GetIPAddressForRequest

func GetIPAddressForRequest(r *http.Request) string

GetIPAddressForRequest returns the real IP address of the request

Types

This section is empty.

Jump to

Keyboard shortcuts

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