utils

package
v0.0.0-...-04ab0c9 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendStyleToHtml

func AppendStyleToHtml(html *string, css *string) *string

func MergeCss

func MergeCss(css ...*string) *string

func MmToInches

func MmToInches(mm int) float64

func ReflectDefaultValues

func ReflectDefaultValues[S any](s *S) *S

func RequestAndInlineAllHtmlResources

func RequestAndInlineAllHtmlResources(ctx context.Context, htmlPtr *string, baseUrl string) *string

func TrimStrWhitespace

func TrimStrWhitespace(str string) string

Types

type HttpClientExecuter

type HttpClientExecuter interface {
	Do(req *http.Request) (*http.Response, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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