@@ -199,10 +199,10 @@ func validateRewriteURLs(usedHelpers usedHelpersMap, endpointsByFilename endpoin
199199 path = strings .ReplaceAll (path , "%s" , "%v" )
200200
201201 // Check the overrides.
202- endpoint .checkHttpMethodOverride (path )
202+ endpoint .checkHTTPMethodOverride (path )
203203
204204 methodAndPath := fmt .Sprintf ("%v %v" , endpoint .httpMethod , path )
205- url , ok := docCache .UrlByMethodAndPath (methodAndPath )
205+ url , ok := docCache .URLByMethodAndPath (methodAndPath )
206206 if ! ok {
207207 if i := len (endpoint .endpointComments ); i > 0 {
208208 pos := fileRewriter .Position (endpoint .endpointComments [i - 1 ].Pos ())
@@ -529,7 +529,7 @@ func resolveHelpersAndCacheDocs(endpoints endpointsMap, docCache documentCacheWr
529529}
530530
531531type documentCacheReader interface {
532- UrlByMethodAndPath (string ) (string , bool )
532+ URLByMethodAndPath (string ) (string , bool )
533533}
534534
535535type documentCacheWriter interface {
@@ -542,7 +542,7 @@ type documentCache struct {
542542 urlByMethodAndPath map [string ]string
543543}
544544
545- func (dc * documentCache ) UrlByMethodAndPath (methodAndPath string ) (string , bool ) {
545+ func (dc * documentCache ) URLByMethodAndPath (methodAndPath string ) (string , bool ) {
546546 url , ok := dc .urlByMethodAndPath [methodAndPath ]
547547 return url , ok
548548}
@@ -657,7 +657,7 @@ func (e *Endpoint) String() string {
657657 return b .String ()
658658}
659659
660- func (e * Endpoint ) checkHttpMethodOverride (path string ) {
660+ func (e * Endpoint ) checkHTTPMethodOverride (path string ) {
661661 lookupOverride := fmt .Sprintf ("%v.%v: %v %v" , e .serviceName , e .endpointName , e .httpMethod , path )
662662 logf ("Looking up override for %q" , lookupOverride )
663663 if v , ok := methodOverrides [lookupOverride ]; ok {
@@ -747,7 +747,7 @@ func processAST(filename string, f *ast.File, services servicesMap, endpoints en
747747 stdRefLines : stdRefLines ,
748748 endpointComments : endpointComments ,
749749 }
750- // ep.checkHttpMethodOverride ("")
750+ // ep.checkHTTPMethodOverride ("")
751751 endpoints [fullName ] = ep
752752 logf ("endpoints[%q] = %#v" , fullName , endpoints [fullName ])
753753 if ep .httpMethod == "" && (ep .helperMethod == "" || len (ep .urlFormats ) == 0 ) {
0 commit comments