utils

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureTrailingSlash added in v0.0.18

func EnsureTrailingSlash(s string) string

func OpenFile added in v0.0.18

func OpenFile(fileName string) (io.ReadCloser, error)

func ParseURL added in v0.0.18

func ParseURL(str string) (*url.URL, error)

ParseURL returns a url.URL when the passed string is a valid url with a host and scheme

func ReadInterfaceWith

func ReadInterfaceWith(r io.Reader, v any) error

func WriteInterfaceWith

func WriteInterfaceWith(w io.Writer, v any, pretty bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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