Documentation
¶
Overview ¶
Package misc provides general purpose utilities for rait
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DecodeTOMLFromPath ¶
DecodeTOMLFromPath decodes the toml file read from path then unmarshal it into the given interface
func LinkLocalAddr ¶
LinkLocalAddr generates a RFC 4862 compliant linklocal address, from a random mac address
func ReadCloserFromPath ¶
func ReadCloserFromPath(path string) (io.ReadCloser, error)
ReadCloserFromPath returns a ReadCloser from the given path path can be a file system path, a http url, or "-" for stdin
func WriteCloserFromPath ¶
func WriteCloserFromPath(path string) (io.WriteCloser, error)
WriteCloserFromPath returns a WriteCloser from the given path path can be a file system path, or "-" for stdout
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.