Documentation
¶
Index ¶
- func ReadFileOrStdin(input []string) ([]byte, error)
- func ReadGraph(gfile []string, interner ls.Interner, inputFormat string) (graph.Graph, error)
- func ReadJSON(input string, output interface{}, enc ...encoding.Encoding) error
- func ReadJSONFileOrStdin(input []string, output interface{}, enc ...encoding.Encoding) error
- func ReadJSONGraph(gfile []string, interner ls.Interner) (graph.Graph, error)
- func ReadJSONLDGraph(gfile []string, interner ls.Interner) (graph.Graph, error)
- func ReadJSONMultiple(input []string) ([]interface{}, error)
- func ReadJSONOrYAML(input string, output interface{}, enc ...encoding.Encoding) error
- func ReadURL(input string, enc ...encoding.Encoding) ([]byte, error)
- func StreamFileOrStdin(input []string, enc ...encoding.Encoding) (io.Reader, error)
- func WriteGraph(graph graph.Graph, format string, out io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFileOrStdin ¶
ReadFileOrStdin reads a file or reads stdin
func ReadJSONFileOrStdin ¶
ReadJSONFileOrStdin reads a JSON file(s), or if there are none, reads from stdin
func ReadJSONLDGraph ¶
func ReadJSONMultiple ¶
ReadJSONMultiple reads multiple JSON files
func ReadJSONOrYAML ¶
func StreamFileOrStdin ¶
StreamFileOrStdin reads file(s), or if there are none, reads frm stdin
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.