package
Version:
v0.22.1
Opens a new window with list of versions in this module.
Published: Mar 20, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package shortry simplifies action assignment.
Please note that the API and the functionality are not yet set, things may
change in the future.
No validation is performed at the moment. If you input is crap, crap comes out.
View Source
var (
ErrNotExists = errors.New("no pattern found for key")
ErrAmbiguous = errors.New("key matches multiple patterns")
ErrForbidden = errors.New("key contains forbidden characters")
)
New returns a new Shortry.
Exists returns true if there exists a pattern that matches to key.
Get value for key, if possible.
Get values for all keys given, in order.
Matches returns a list of matching patterns.
Unique returns whether there exists a only one pattern that matches to key.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.