hercules.v9: gopkg.in/src-d/hercules.v9/internal/yaml Index | Files

package yaml

import "gopkg.in/src-d/hercules.v9/internal/yaml"

Index

Package Files

utils.go

func PrintMatrix Uses

func PrintMatrix(writer io.Writer, matrix [][]int64, indent int, name string, fixNegative bool)

PrintMatrix outputs a rectangular integer matrix in YAML text format.

`indent` is the current YAML indentation level - the number of spaces. `name` is the name of the corresponding YAML block. If empty, no separate block is created. `fixNegative` changes all negative values to 0.

func SafeString Uses

func SafeString(str string) string

SafeString returns a string which is sufficiently quoted and escaped for YAML.

Package yaml imports 4 packages (graph) and is imported by 2 packages. Updated 2019-04-26. Refresh now. Tools for package owners.