fs

package
v0.0.0-...-149ce59 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FileTypeUnknown = iota
	FileTypeJSON
	FileTypeXML
)

Variables

This section is empty.

Functions

func LoadAlert

func LoadAlert(r io.Reader, at FileType) (*cap.Alert, error)

LoadAlert loads an alert from the reader.

func LoadAlertFile

func LoadAlertFile(filename string) (*cap.Alert, error)

LoadAlertFile loads an alert from file. Support file types are: .xml and .json

Types

type FileType

type FileType int

Jump to

Keyboard shortcuts

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