Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions go_templates/query.vm
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,18 @@ UNHANDLED TYPE
#set( $processedPath = """${q.path}""" )
#if( $str.matches($q.path, ".*\{.*}.*") )
#set( $processedPath = "fmt.Sprintf(""" )
#set( $argList = "" )
#set( $argList = ", common.EscapeParams(" )
Comment thread
algoidurovic marked this conversation as resolved.
#foreach( $part in $q.pathParts )
#if ( $part.matches("\{.*}") )
#set( $processedPath = "${processedPath}/%v" )
#set( $argList = "$argList, s.${str.kebabToCamel($str.unwrap($part))}" )
#set( $processedPath = "${processedPath}/%s" )
#set( $argList = "${argList}s.${str.kebabToCamel($str.unwrap($part))}, " )
Comment thread
algoidurovic marked this conversation as resolved.
Outdated
#else
#set( $processedPath = "${processedPath}/$part" )
#end
#end
#set( $processedPath = "${processedPath}""$argList)" )
#set( $index = $argList.length() - 2 )
#set( $argList = $argList.substring(0, $index) )
Comment thread
algoidurovic marked this conversation as resolved.
Outdated
#set( $processedPath = "${processedPath}""$argList)...)" )
#end
## Return types are not consistent so manually add in the inconsistent functions...
#if( $queryType == "PendingTransactionsByAddress" )
Expand Down