Versions in this module Expand all Collapse all v0 v0.4.3 Aug 11, 2022 Changes in this version + type Analyzer struct + func New(options ...Option) *Analyzer + func (a *Analyzer) Analyze(target *Target) Issue + type Calculable interface + Calculate func(map[string]Value) error + Get func() string + type Configuration struct + Template string + TemplatePath string + Values map[string]map[string]string + func (c *Configuration) GetTemplate() (string, error) + func (c *Configuration) GetValues() (map[string]Value, error) + func (c *Configuration) Parse(p string) error + type ConstValue struct + RawValue string + func (c *ConstValue) Calculate(values map[string]Value) error + func (c *ConstValue) Get() string + func (c *ConstValue) Read(s *Reader) Issue + type Issue interface + Location func() Location + Message func() string + func NewIssue(msg string) Issue + func NewIssueWithLocation(msg string, location Location) Issue + type Location struct + Line int + Position int + func (l Location) Add(other Location) Location + func (l Location) String() string + type Option interface + func WithTemplate(template string) Option + func WithValues(values map[string]Value) Option + type Reader struct + func NewReader(text string) *Reader + func (r *Reader) Done() bool + func (r *Reader) Finish() string + func (r *Reader) Location() Location + func (r *Reader) Next() rune + func (r *Reader) Peek() rune + func (r *Reader) Position() int + func (r *Reader) ReadWhile(match func(rune) bool) string + func (r *Reader) SetOffset(offset Location) + func (r *Reader) SetPosition(pos int) + type RegexpValue struct + RawValue string + func (r *RegexpValue) Calculate(values map[string]Value) error + func (r *RegexpValue) Get() string + func (r *RegexpValue) Read(s *Reader) Issue + type Target struct + File *ast.File + Path string + func (t *Target) ModTime() (time.Time, error) + type Value interface + Read func(*Reader) Issue