mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-22 14:11:50 +08:00
parent
2943c41884
commit
3443a8a056
|
@ -496,7 +496,7 @@ func celMatcherStringMacroExpander(funcName string) parser.MacroExpander {
|
|||
}
|
||||
}
|
||||
|
||||
// celMatcherStringMacroExpander validates that the macro is called a single
|
||||
// celMatcherJSONMacroExpander validates that the macro is called a single
|
||||
// map literal argument.
|
||||
//
|
||||
// The following function call is returned: <funcName>(request, arg)
|
||||
|
|
|
@ -558,7 +558,7 @@ func indexFold(haystack, needle string) int {
|
|||
return -1
|
||||
}
|
||||
|
||||
// isCELMapLiteral returns whether the expression resolves to a map literal containing
|
||||
// isCELTryFilesLiteral returns whether the expression resolves to a map literal containing
|
||||
// only string keys with or a placeholder call.
|
||||
func isCELTryFilesLiteral(e *exprpb.Expr) bool {
|
||||
switch e.GetExprKind().(type) {
|
||||
|
|
|
@ -397,7 +397,7 @@ func (c TemplateContext) funcFileExists(filename string) (bool, error) {
|
|||
return false, nil
|
||||
}
|
||||
|
||||
// funcStat returns Stat of a filename
|
||||
// funcFileStat returns Stat of a filename
|
||||
func (c TemplateContext) funcFileStat(filename string) (fs.FileInfo, error) {
|
||||
if c.Root == nil {
|
||||
return nil, fmt.Errorf("root file system not specified")
|
||||
|
|
Loading…
Reference in New Issue
Block a user