add boilerplate
This commit is contained in:
@@ -1,3 +1,17 @@
|
|||||||
|
// Copyright 2020 Google LLC
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -1,5 +1,19 @@
|
|||||||
// +build gokrazy
|
// +build gokrazy
|
||||||
|
|
||||||
|
// Copyright 2020 Google LLC
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
// Copyright 2020 Google LLC
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
63
docs/code-of-conduct.md
Normal file
63
docs/code-of-conduct.md
Normal file
@@ -0,0 +1,63 @@
|
|||||||
|
# Google Open Source Community Guidelines
|
||||||
|
|
||||||
|
At Google, we recognize and celebrate the creativity and collaboration of open
|
||||||
|
source contributors and the diversity of skills, experiences, cultures, and
|
||||||
|
opinions they bring to the projects and communities they participate in.
|
||||||
|
|
||||||
|
Every one of Google's open source projects and communities are inclusive
|
||||||
|
environments, based on treating all individuals respectfully, regardless of
|
||||||
|
gender identity and expression, sexual orientation, disabilities,
|
||||||
|
neurodiversity, physical appearance, body size, ethnicity, nationality, race,
|
||||||
|
age, religion, or similar personal characteristic.
|
||||||
|
|
||||||
|
We value diverse opinions, but we value respectful behavior more.
|
||||||
|
|
||||||
|
Respectful behavior includes:
|
||||||
|
|
||||||
|
* Being considerate, kind, constructive, and helpful.
|
||||||
|
* Not engaging in demeaning, discriminatory, harassing, hateful, sexualized, or
|
||||||
|
physically threatening behavior, speech, and imagery.
|
||||||
|
* Not engaging in unwanted physical contact.
|
||||||
|
|
||||||
|
Some Google open source projects [may adopt][] an explicit project code of
|
||||||
|
conduct, which may have additional detailed expectations for participants. Most
|
||||||
|
of those projects will use our [modified Contributor Covenant][].
|
||||||
|
|
||||||
|
[may adopt]: https://opensource.google/docs/releasing/preparing/#conduct
|
||||||
|
[modified Contributor Covenant]: https://opensource.google/docs/releasing/template/CODE_OF_CONDUCT/
|
||||||
|
|
||||||
|
## Resolve peacefully
|
||||||
|
|
||||||
|
We do not believe that all conflict is necessarily bad; healthy debate and
|
||||||
|
disagreement often yields positive results. However, it is never okay to be
|
||||||
|
disrespectful.
|
||||||
|
|
||||||
|
If you see someone behaving disrespectfully, you are encouraged to address the
|
||||||
|
behavior directly with those involved. Many issues can be resolved quickly and
|
||||||
|
easily, and this gives people more control over the outcome of their dispute.
|
||||||
|
If you are unable to resolve the matter for any reason, or if the behavior is
|
||||||
|
threatening or harassing, report it. We are dedicated to providing an
|
||||||
|
environment where participants feel welcome and safe.
|
||||||
|
|
||||||
|
## Reporting problems
|
||||||
|
|
||||||
|
Some Google open source projects may adopt a project-specific code of conduct.
|
||||||
|
In those cases, a Google employee will be identified as the Project Steward,
|
||||||
|
who will receive and handle reports of code of conduct violations. In the event
|
||||||
|
that a project hasn’t identified a Project Steward, you can report problems by
|
||||||
|
emailing opensource@google.com.
|
||||||
|
|
||||||
|
We will investigate every complaint, but you may not receive a direct response.
|
||||||
|
We will use our discretion in determining when and how to follow up on reported
|
||||||
|
incidents, which may range from not taking action to permanent expulsion from
|
||||||
|
the project and project-sponsored spaces. We will notify the accused of the
|
||||||
|
report and provide them an opportunity to discuss it before any action is
|
||||||
|
taken. The identity of the reporter will be omitted from the details of the
|
||||||
|
report supplied to the accused. In potentially harmful situations, such as
|
||||||
|
ongoing harassment or threats to anyone's safety, we may take action without
|
||||||
|
notice.
|
||||||
|
|
||||||
|
*This document was adapted from the [IndieWeb Code of Conduct][] and can also
|
||||||
|
be found at <https://opensource.google/conduct/>.*
|
||||||
|
|
||||||
|
[IndieWeb Code of Conduct]: https://indieweb.org/code-of-conduct
|
||||||
28
docs/contributing.md
Normal file
28
docs/contributing.md
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# How to Contribute
|
||||||
|
|
||||||
|
We'd love to accept your patches and contributions to this project. There are
|
||||||
|
just a few small guidelines you need to follow.
|
||||||
|
|
||||||
|
## Contributor License Agreement
|
||||||
|
|
||||||
|
Contributions to this project must be accompanied by a Contributor License
|
||||||
|
Agreement. You (or your employer) retain the copyright to your contribution;
|
||||||
|
this simply gives us permission to use and redistribute your contributions as
|
||||||
|
part of the project. Head over to <https://cla.developers.google.com/> to see
|
||||||
|
your current agreements on file or to sign a new one.
|
||||||
|
|
||||||
|
You generally only need to submit a CLA once, so if you've already submitted one
|
||||||
|
(even if it was for a different project), you probably don't need to do it
|
||||||
|
again.
|
||||||
|
|
||||||
|
## Code reviews
|
||||||
|
|
||||||
|
All submissions, including submissions by project members, require review. We
|
||||||
|
use GitHub pull requests for this purpose. Consult
|
||||||
|
[GitHub Help](https://help.github.com/articles/about-pull-requests/) for more
|
||||||
|
information on using pull requests.
|
||||||
|
|
||||||
|
## Community Guidelines
|
||||||
|
|
||||||
|
This project follows [Google's Open Source Community
|
||||||
|
Guidelines](https://opensource.google/conduct/).
|
||||||
16
generate.go
16
generate.go
@@ -1,3 +1,17 @@
|
|||||||
|
// Copyright 2020 Google LLC
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
package qrbill
|
package qrbill
|
||||||
|
|
||||||
//go:generate sh -c "go run goembed.go -package qrbill -var swisscross third_party/swiss-cross/CH-Kreuz_7mm/CH-Kreuz_7mm.png > GENERATED_swisscross.go && gofmt -w GENERATED_swisscross.go"
|
//go:generate sh -c "go run third_party/goembed/goembed.go -package qrbill -var swisscross third_party/swiss-cross/CH-Kreuz_7mm/CH-Kreuz_7mm.png > GENERATED_swisscross.go && gofmt -w GENERATED_swisscross.go"
|
||||||
|
|||||||
14
qrbill.go
14
qrbill.go
@@ -1,3 +1,17 @@
|
|||||||
|
// Copyright 2020 Google LLC
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
// Package qrbill implements the Swiss QR-bill standard.
|
// Package qrbill implements the Swiss QR-bill standard.
|
||||||
//
|
//
|
||||||
// More specifically, the most recent standard version at the time of writing
|
// More specifically, the most recent standard version at the time of writing
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
// Copyright 2020 Google LLC
|
||||||
|
//
|
||||||
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
// you may not use this file except in compliance with the License.
|
||||||
|
// You may obtain a copy of the License at
|
||||||
|
//
|
||||||
|
// https://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
//
|
||||||
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
// See the License for the specific language governing permissions and
|
||||||
|
// limitations under the License.
|
||||||
|
|
||||||
package qrbill
|
package qrbill
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
29
goembed.go → third_party/goembed/goembed.go
vendored
29
goembed.go → third_party/goembed/goembed.go
vendored
@@ -2,6 +2,35 @@
|
|||||||
|
|
||||||
// +build ignore
|
// +build ignore
|
||||||
|
|
||||||
|
// goembed - Embed data in Go source code
|
||||||
|
// https://github.com/dsymonds/goembed
|
||||||
|
//
|
||||||
|
// Copyright 2013 David Symonds.
|
||||||
|
// All rights reserved.
|
||||||
|
//
|
||||||
|
// Redistribution and use in source and binary forms, with or without modification,
|
||||||
|
// are permitted provided that the following conditions are met:
|
||||||
|
//
|
||||||
|
// * Redistributions of source code must retain the above copyright notice,
|
||||||
|
// this list of conditions and the following disclaimer.
|
||||||
|
// * Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
// this list of conditions and the following disclaimer in the documentation
|
||||||
|
// and/or other materials provided with the distribution.
|
||||||
|
// * Neither the name of the author nor the names of its contributors may be used
|
||||||
|
// to endorse or promote products derived from this software
|
||||||
|
// without specific prior written permission.
|
||||||
|
//
|
||||||
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||||
|
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
// goembed generates a Go source file from an input file.
|
// goembed generates a Go source file from an input file.
|
||||||
package main
|
package main
|
||||||
|
|
||||||
Reference in New Issue
Block a user