How-to guides

Recipes for one task each, in JavaScript and in Go.

Each guide does one thing, and assumes you have a router to do it with. A guide shows the JavaScript first and the Go after it, where the Go port does the same. The reference states each function in full.

Choosing the match #

Decide which pattern answers a query, and how strictly.

Matching values #

Patterns whose values take more than one value.

Managing patterns #

Read back, list, change and remove what a router holds.

Using it in a program #

Fit a router into the code around it.

This page describes patrun 9.0.0 for JavaScript and 0.4.0 for Go. Edit this page · This page as Markdown