blob: 7a9058040eb0a5ca553a5c3e3d8890f31cd1c3cf [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package templates
const TemplateJson = `{
"licenses": {
"unused": {
"categories": [{{ range $_, $license := .Unused }}
"{{ (getCategory $license) }}",{{ end }}
],
},
"used": {
"license": [
{{ range $_, $license := .Used }}{
{{ range $author := (getAuthors $license) }}
"authors": "{{ $author }}",
"category": "{{ (getCategory $license) }}",
"files": [{{ range $file := (getFiles $license $author) }}
"{{ $file }}",{{ end }}
],
"text": "{{ (getEscapedText $license $author) }}",
},{{ end }}{{ end }}
]
}
},
"files": {
"unlicensed": []
}
}
`