From 9d969a13823ae7f46a5b5567b71ad0d1f2e1bbb7 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Wed, 18 May 2022 17:51:31 -0700 Subject: [PATCH] Add version function --- pcre.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcre.go b/pcre.go index 8509032..5b8e49e 100644 --- a/pcre.go +++ b/pcre.go @@ -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