You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-08-08 04:42:07 +03:00
Refactor repository layout and convert build system to Mage.
This commit implements a massive refactor of the repository, and moves the build system over to use Mage (magefile.org) which should allow seamless building across multiple platforms.
This commit is contained in:
73
tools/vendor/github.com/tmthrgd/go-bindata/header.go
generated
vendored
Normal file
73
tools/vendor/github.com/tmthrgd/go-bindata/header.go
generated
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
// Copyright 2017 Tom Thorogood. All rights reserved.
|
||||
// Use of this source code is governed by a Modified
|
||||
// BSD License that can be found in the LICENSE file.
|
||||
|
||||
package bindata
|
||||
|
||||
import (
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"text/template"
|
||||
"unicode"
|
||||
)
|
||||
|
||||
func init() {
|
||||
template.Must(baseTemplate.New("header").Funcs(template.FuncMap{
|
||||
"trimright": func(s string) string {
|
||||
return strings.TrimRightFunc(s, unicode.IsSpace)
|
||||
},
|
||||
"toslash": filepath.ToSlash,
|
||||
}).Parse(`{{- /* This makes e.g. Github ignore diffs in generated files. */ -}}
|
||||
// Code generated by go-bindata. DO NOT EDIT.
|
||||
{{if $.Dev -}}
|
||||
// debug: dev
|
||||
{{else if $.Debug -}}
|
||||
// debug: true
|
||||
{{end -}}
|
||||
{{- if $.MemCopy -}}
|
||||
// memcopy: true
|
||||
{{end -}}
|
||||
{{- if $.Compress -}}
|
||||
// compress: true
|
||||
{{end -}}
|
||||
{{- if and $.Compress $.DecompressOnce -}}
|
||||
// decompress: once
|
||||
{{end -}}
|
||||
{{- if $.Metadata -}}
|
||||
// metadata: true
|
||||
{{end -}}
|
||||
{{- if $.Mode -}}
|
||||
// mode: {{printf "%04o" $.Mode}}
|
||||
{{end -}}
|
||||
{{- if $.ModTime -}}
|
||||
// modtime: {{$.ModTime}}
|
||||
{{end -}}
|
||||
{{- if $.AssetDir -}}
|
||||
// asset-dir: true
|
||||
{{end -}}
|
||||
{{- if $.Restore -}}
|
||||
// restore: true
|
||||
{{end -}}
|
||||
{{- if $.Hash -}}
|
||||
{{- if $.HashFormat -}}
|
||||
// hash-format: {{$.HashFormat}}
|
||||
{{else -}}
|
||||
// hash-format: unchanged
|
||||
{{end -}}
|
||||
{{- if and $.HashFormat $.HashLength (ne $.HashLength 16) -}}
|
||||
// hash-length: {{$.HashLength}}
|
||||
{{end -}}
|
||||
{{- if and $.HashFormat $.HashEncoding -}}
|
||||
// hash-encoding: {{$.HashEncoding}}
|
||||
{{end -}}
|
||||
{{- end -}}
|
||||
// sources:
|
||||
{{range .Assets -}}
|
||||
// {{toslash (trimright .Path)}}
|
||||
{{end}}
|
||||
{{if $.Tags -}} // +build {{$.Tags}}
|
||||
|
||||
{{end -}}
|
||||
|
||||
package {{$.Package}}`))
|
||||
}
|
Reference in New Issue
Block a user