Rename TSVal
This commit is contained in:
parent
a1453da84e
commit
d87e227ff3
29 changed files with 118 additions and 118 deletions
|
|
@ -20,7 +20,7 @@ import (
|
|||
"github.com/google/cayley/graph"
|
||||
)
|
||||
|
||||
func (q *Query) treeifyResult(tags map[string]graph.TSVal) map[ResultPath]string {
|
||||
func (q *Query) treeifyResult(tags map[string]graph.Value) map[ResultPath]string {
|
||||
// Transform the map into something a little more interesting.
|
||||
results := make(map[Path]string)
|
||||
for k, v := range tags {
|
||||
|
|
|
|||
|
|
@ -92,11 +92,11 @@ func (s *Session) ExecInput(input string, c chan interface{}, limit int) {
|
|||
if !ok {
|
||||
break
|
||||
}
|
||||
tags := make(map[string]graph.TSVal)
|
||||
tags := make(map[string]graph.Value)
|
||||
it.TagResults(tags)
|
||||
c <- tags
|
||||
for it.NextResult() == true {
|
||||
tags := make(map[string]graph.TSVal)
|
||||
tags := make(map[string]graph.Value)
|
||||
it.TagResults(tags)
|
||||
c <- tags
|
||||
}
|
||||
|
|
@ -104,7 +104,7 @@ func (s *Session) ExecInput(input string, c chan interface{}, limit int) {
|
|||
}
|
||||
|
||||
func (s *Session) ToText(result interface{}) string {
|
||||
tags := result.(map[string]graph.TSVal)
|
||||
tags := result.(map[string]graph.Value)
|
||||
out := fmt.Sprintln("****")
|
||||
tagKeys := make([]string, len(tags))
|
||||
s.currentQuery.treeifyResult(tags)
|
||||
|
|
@ -127,7 +127,7 @@ func (s *Session) ToText(result interface{}) string {
|
|||
}
|
||||
|
||||
func (s *Session) BuildJson(result interface{}) {
|
||||
s.currentQuery.treeifyResult(result.(map[string]graph.TSVal))
|
||||
s.currentQuery.treeifyResult(result.(map[string]graph.Value))
|
||||
}
|
||||
|
||||
func (s *Session) GetJson() (interface{}, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue