From 55fe0c3c7bcd0243493976195a1e4d3283e2bfb7 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 29 Dec 2016 22:41:38 +0100 Subject: Dig deeper --- direction_string.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 direction_string.go (limited to 'direction_string.go') diff --git a/direction_string.go b/direction_string.go new file mode 100644 index 0000000..276d157 --- /dev/null +++ b/direction_string.go @@ -0,0 +1,16 @@ +// Code generated by "stringer -type=Direction"; DO NOT EDIT + +package anki + +import "fmt" + +const _Direction_name = "ForwardReverse" + +var _Direction_index = [...]uint8{0, 7, 14} + +func (i Direction) String() string { + if i >= Direction(len(_Direction_index)-1) { + return fmt.Sprintf("Direction(%d)", i) + } + return _Direction_name[_Direction_index[i]:_Direction_index[i+1]] +} -- cgit v1.2.3