Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for doublePercent (0.26 sec)

  1. src/text/template/exec.go

    }
    
    // at marks the state to be on node n, for error reporting.
    func (s *state) at(node parse.Node) {
    	s.node = node
    }
    
    // doublePercent returns the string with %'s replaced by %%, if necessary,
    // so it can be used safely inside a Printf format string.
    func doublePercent(str string) string {
    	return strings.ReplaceAll(str, "%", "%%")
    }
    
    // TODO: It would be nice if ExecError was more broken down, but
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top