assert

package module
v0.0.0-...-60cbbbe Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2015 License: MIT Imports: 2 Imported by: 0

README

assert

GoDoc

Assert byte content by looking at an example and taking into account archetypes

Documentation

Overview

assert byte content by looking at an example and configured archetypes

Index

Constants

This section is empty.

Variables

View Source
var DefaultParserMIME = "plain/text"

Functions

func Follows

func Follows(ex, act []byte, p parser.P) error

Assert whether the given data flollows the example bytes using the given parser

func Parser

func Parser(mime string, ats []*strategy.Archetype) parser.P

Return a parser that is appropriate for the given mime type, if non is found return parser for DefaultParserMIME

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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