Add version function

This commit is contained in:
Elara 2022-05-18 17:51:31 -07:00
parent e8909360ba
commit 9d969a1382
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,9 @@ import (
"modernc.org/libc"
)
// Version returns the version of pcre2 embedded in this library.
func Version() string { return lib.DPACKAGE_VERSION }
// Regexp represents a pcre2 regular expression
type Regexp struct {
mtx *sync.Mutex