prometheus/web
Julius Volz 5df52e2874 Support escape sequences in strings and add raw strings.
This adapts some functionality from the Go standard library for string
literal lexing and unquoting/unescaping.

The following string types are now supported:

Double- or single-quoted strings:

  These support all escape sequences that Go supports in double-quoted
  string literals. The difference is that Prometheus also has
  single-quoted strings (instead of single-quoted runes in Go). Raw
  newlines are not allowed.

Backtick-quoted raw strings:

  Strings quoted in backticks are treated as raw strings just like in Go
  and may contain raw newlines and other special characters directly.

Fixes https://github.com/prometheus/prometheus/issues/1122
Fixes https://github.com/prometheus/prometheus/issues/1121
2016-01-11 16:48:22 +01:00
..
api Support escape sequences in strings and add raw strings. 2016-01-11 16:48:22 +01:00
blob Remove duplicated bootstrap js on the graph template, it's already included on the base template. 2016-01-11 16:48:21 +01:00
federate.go Rename global "labels" config option to "external_labels". 2016-01-11 16:48:20 +01:00
web.go Switch to common/log 2016-01-11 16:48:21 +01:00
web_test.go Add tests for "globalURL" template function. 2015-07-03 14:47:52 +02:00