summaryrefslogtreecommitdiff
path: root/paths/path.go
blob: 5706d29a5989cc735409a604cf6fe5c28498d715 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package paths

type Path struct {
	Val *string
}

func (p *Path) Set(val string) {
	p.Val = &val
}

func (p *Path) String() string {
	if p == nil || p.Val == nil {
		return "<empty>"
	}
	return *p.Val
}

func Empty() *Path {
	return &Path{}
}