1/*
2Copyright 2014 The Go4 Authors
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8     http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17// Package legal provides in-process storage for compiled-in licenses.
18package legal // import "go4.org/legal"
19
20var licenses []string
21
22// RegisterLicense stores the license text.
23// It doesn't check whether the text was already present.
24func RegisterLicense(text string) {
25	licenses = append(licenses, text)
26	return
27}
28
29// Licenses returns a slice of the licenses.
30func Licenses() []string {
31	return licenses
32}
33