move tests to gh actions (#9461)

This commit is contained in:
Ricardo Katz 2022-12-29 19:09:29 -03:00 committed by GitHub
parent 2db8552a87
commit 3916f7b8b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 72 additions and 11 deletions

View file

@ -75,8 +75,8 @@ type Template struct {
bp *BufferPool
}
//NewTemplate returns a new Template instance or an
//error if the specified template file contains errors
// NewTemplate returns a new Template instance or an
// error if the specified template file contains errors
func NewTemplate(file string) (*Template, error) {
data, err := os.ReadFile(file)
if err != nil {
@ -287,9 +287,10 @@ var (
// escapeLiteralDollar will replace the $ character with ${literal_dollar}
// which is made to work via the following configuration in the http section of
// the template:
// geo $literal_dollar {
// default "$";
// }
//
// geo $literal_dollar {
// default "$";
// }
func escapeLiteralDollar(input interface{}) string {
inputStr, ok := input.(string)
if !ok {