web

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptureBase64Images

func CaptureBase64Images(startingHTML string) (newHTML string, images map[string][]byte, err error)

CaptureBase64Images takes HTML and replaces all base64 representations (except GIF) with a filename. It returns the new HTML and also a map of the new file names and their associated data (converted from base64 to binary).

func CaptureBase64ImagesFromMarkdown added in v0.1.0

func CaptureBase64ImagesFromMarkdown(startingMarkdown string) (newContent string, images map[string][]byte, err error)

func ContentType

func ContentType(filename string) string

ContentType returns the type of content

func GetClientIPHelper

func GetClientIPHelper(req *http.Request) (ipResult string, errResult error)

GetClientIPHelper gets the client IP using a mixture of techniques. This is how it is with golang at the moment.

Types

This section is empty.

Jump to

Keyboard shortcuts

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