Documentation ¶
Index ¶
- func EncodeJPEG(i image.Image) ([]byte, error)
- func FirstNHTML(text string, n, maxDepth int) string
- func GenerateRandomToken() (string, error)
- func GetPreferredLanguage(langs []language.Tag) language.Tag
- func MapMerge(to, from map[string]interface{}) map[string]interface{}
- func Merge(p0, p1 context.Context) context.Context
- func MustPropagateString(f func() (string, error), e *error) (s string)
- func SoftMapMergeInto(m map[string]interface{}, key string, val map[string]interface{})
- func ToErrors(nilable []error) error
- func ToImage(b []byte) (image.Image, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstNHTML ¶
func GenerateRandomToken ¶
func SoftMapMergeInto ¶
SoftMapMerge takes m[k], converts to map[string]interface{}, and merges val into m[k], overwriting if necessary.
If m[k] does not exist, it is created.
If it cannot do the merge, silently fail.
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.