Add version function
This commit is contained in:
parent
e8909360ba
commit
9d969a1382
3
pcre.go
3
pcre.go
@ -19,6 +19,9 @@ import (
|
|||||||
"modernc.org/libc"
|
"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
|
// Regexp represents a pcre2 regular expression
|
||||||
type Regexp struct {
|
type Regexp struct {
|
||||||
mtx *sync.Mutex
|
mtx *sync.Mutex
|
||||||
|
Loading…
Reference in New Issue
Block a user