constrainer

command
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Overview

Constrainer is a tool to generate acces methods from virtual tables types definitions. This reduces toil in what is mostly a routine work.

The code follows the semantics of the `vtab` mini-language, and makes sure that:

  • required fields have an access method with the right type
  • filtered fields have an access method with two forms (T, bool)
  • non-filtered fields do not have an access method

Jump to

Keyboard shortcuts

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