convert to prefix byte

This commit is contained in:
Barak Michener 2014-07-03 13:32:58 -04:00
parent 7b87e08e89
commit 50bd7d04ef
2 changed files with 9 additions and 9 deletions

View file

@ -60,20 +60,20 @@ const (
Provenance
)
func (d Direction) Prefix() string {
func (d Direction) Prefix() byte {
switch d {
case Any:
return "a"
return 'a'
case Subject:
return "s"
return 's'
case Predicate:
return "p"
return 'p'
case Provenance:
return "c"
return 'c'
case Object:
return "o"
return 'o'
default:
return fmt.Sprint("illegal direction:", byte(d))
return '\x00'
}
}