func newSchema(cfg *SchemaConfig) *schema {
	return &schema{
		cfg:     cfg,
		matcher: regexp.MustCompile(cfg.PathMatcher),
	}
}
===================== schema =====================
package scanner
import (
	"errors"
	"fmt"
	"github.com/logrange/logrange/pkg/scanner/parser"
	"github.com/logrange/logrange/pkg/utils"
	"regexp"
	"regexp/syntax"
	"strings"
)
type (
	SchemaConfig struct {
		PathMatcher string
		DataFormat  parser.DataFormat
		DateFormats []string
		Meta Meta
	}
	Meta struct {
		Tags map[string]string
		Fields map[string]string
	}
	schema struct {
		cfg     *SchemaConfig
		matcher *regexp.Regexp
	}
)