Add version function
This commit is contained in:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user