mirror of
https://github.com/ribbybibby/ssl_exporter.git
synced 2026-05-06 00:26:33 +00:00
There are a number of reasons for this change: - Modules allow a single instance of the exporter to be configured with numerous different tls configs. Previously you had to run a different exporter for each combination. - Adding new and more complicated options to the exporter should be easier with modules than if I was to go down the route of accepting configuration directly through url params - I prefer defining a specific prober (https,tcp) over using the URL to guess what the user wants
Go's text/template package with newline elision
This is a fork of Go 1.4's text/template package with one addition: a backslash immediately after a closing delimiter will delete all subsequent newlines until a non-newline.
eg.
{{if true}}\
hello
{{end}}\
Will result in:
hello\n
Rather than:
\n
hello\n
\n