@@ -199,10 +199,10 @@ func validateRewriteURLs(usedHelpers usedHelpersMap, endpointsByFilename endpoin
199
199
path = strings .ReplaceAll (path , "%s" , "%v" )
200
200
201
201
// Check the overrides.
202
- endpoint .checkHttpMethodOverride (path )
202
+ endpoint .checkHTTPMethodOverride (path )
203
203
204
204
methodAndPath := fmt .Sprintf ("%v %v" , endpoint .httpMethod , path )
205
- url , ok := docCache .UrlByMethodAndPath (methodAndPath )
205
+ url , ok := docCache .URLByMethodAndPath (methodAndPath )
206
206
if ! ok {
207
207
if i := len (endpoint .endpointComments ); i > 0 {
208
208
pos := fileRewriter .Position (endpoint .endpointComments [i - 1 ].Pos ())
@@ -529,7 +529,7 @@ func resolveHelpersAndCacheDocs(endpoints endpointsMap, docCache documentCacheWr
529
529
}
530
530
531
531
type documentCacheReader interface {
532
- UrlByMethodAndPath (string ) (string , bool )
532
+ URLByMethodAndPath (string ) (string , bool )
533
533
}
534
534
535
535
type documentCacheWriter interface {
@@ -542,7 +542,7 @@ type documentCache struct {
542
542
urlByMethodAndPath map [string ]string
543
543
}
544
544
545
- func (dc * documentCache ) UrlByMethodAndPath (methodAndPath string ) (string , bool ) {
545
+ func (dc * documentCache ) URLByMethodAndPath (methodAndPath string ) (string , bool ) {
546
546
url , ok := dc .urlByMethodAndPath [methodAndPath ]
547
547
return url , ok
548
548
}
@@ -657,7 +657,7 @@ func (e *Endpoint) String() string {
657
657
return b .String ()
658
658
}
659
659
660
- func (e * Endpoint ) checkHttpMethodOverride (path string ) {
660
+ func (e * Endpoint ) checkHTTPMethodOverride (path string ) {
661
661
lookupOverride := fmt .Sprintf ("%v.%v: %v %v" , e .serviceName , e .endpointName , e .httpMethod , path )
662
662
logf ("Looking up override for %q" , lookupOverride )
663
663
if v , ok := methodOverrides [lookupOverride ]; ok {
@@ -747,7 +747,7 @@ func processAST(filename string, f *ast.File, services servicesMap, endpoints en
747
747
stdRefLines : stdRefLines ,
748
748
endpointComments : endpointComments ,
749
749
}
750
- // ep.checkHttpMethodOverride ("")
750
+ // ep.checkHTTPMethodOverride ("")
751
751
endpoints [fullName ] = ep
752
752
logf ("endpoints[%q] = %#v" , fullName , endpoints [fullName ])
753
753
if ep .httpMethod == "" && (ep .helperMethod == "" || len (ep .urlFormats ) == 0 ) {
0 commit comments