1package goheader
2
3type Issue interface {
4	Location() Location
5	Message() string
6}
7
8type issue struct {
9	msg      string
10	location Location
11}
12
13func (i *issue) Location() Location {
14	return i.location
15}
16
17func (i *issue) Message() string {
18	return i.msg
19}
20
21func NewIssueWithLocation(msg string, location Location) Issue {
22	return &issue{
23		msg:      msg,
24		location: location,
25	}
26}
27
28func NewIssue(msg string) Issue {
29	return &issue{
30		msg: msg,
31	}
32}
33