Skip to content

an easy to use library to validate data

Notifications You must be signed in to change notification settings

LaurensKubat/waldorf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Report Card CircleCI

waldorf

An easy to use library to validate data, for example incomming API requests. Waldorf checks everything that is wrong and returns a slice of complaints.

package waldorf_test

import (
	"fmt"
	"github.com/CIP-NL/waldorf"
	)

func Example() {
	w := waldorf.Observe()

	for i := 0; i < 3; i++ {
		w.ShouldBeTrue(i==0, "%d is one too many alread!", i)
	}
	complaints := w.Ridicule()
	fmt.Println(complaints.String())
	// Output:
	// [1] is one too many alread!
	// [2] is one too many alread!
}

About

an easy to use library to validate data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%