summaryrefslogtreecommitdiff
path: root/dir.go
diff options
context:
space:
mode:
authoranon5 <anon5clam@protonmail.com>2021-06-22 16:30:50 +0000
committeranon5 <anon5clam@protonmail.com>2021-06-22 16:30:50 +0000
commitf967a747e4ae01fba3a6c3fd693d0e753faf3ae4 (patch)
tree22d628df079bb5cac93cc2338cfbe585ff8a2763 /dir.go
parent425da65ed46061303604610bb539d6495b2b1f3f (diff)
Add String methods to some types using stringer and fix some minor defects
Diffstat (limited to 'dir.go')
-rw-r--r--dir.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/dir.go b/dir.go
index 693db98..e7bb47a 100644
--- a/dir.go
+++ b/dir.go
@@ -13,6 +13,8 @@ const (
NoDir
)
+//go:generate stringer -type Dir
+
// Opposite returns the Dir's opposite.
// NoDir is its own opposite.
func (d Dir) Opposite() Dir {