webutil

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildURL

func BuildURL(basePath string, queryParams map[string]string) (string, error)

BuildURL builds a URL out of basePath and the contents of queryParams, or an error if basePath could not be parsed.

func IsHTMLContentType

func IsHTMLContentType(contentType string) bool

IsHTMLContentType returns true if the value of a Content-Type header is text/html.

func MinifyHTML

func MinifyHTML(s []byte) ([]byte, error)

MinifyHTML minifies some HTML.

Types

This section is empty.

Jump to

Keyboard shortcuts

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