commons

package module
v0.0.0-...-841437a Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 4

README

Commons

Common code shared amongst all packages within Ranvier.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringIncludes

func StringIncludes(s string, sl []string) bool

Types

type Filer

type Filer interface {
	Exists(path string) bool
}

func NewFiler

func NewFiler() Filer

type JsonMerger

type JsonMerger interface {
	MergeJson(dest, src []byte) ([]byte, error)
}

func NewJsonMerger

func NewJsonMerger() JsonMerger

type Raw

type Raw []byte

func (Raw) MarshalJSON

func (r Raw) MarshalJSON() ([]byte, error)

func (Raw) MarshalYAML

func (r Raw) MarshalYAML() (interface{}, error)

func (*Raw) UnmarshalJSON

func (r *Raw) UnmarshalJSON(data []byte) error

func (*Raw) UnmarshalYAML

func (r *Raw) UnmarshalYAML(unmarshal func(interface{}) error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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