From d880a84f2b21dbe87b7466ab7c2683d5492fa63d Mon Sep 17 00:00:00 2001 From: Florent Biville Date: Wed, 26 Sep 2018 11:09:14 -0400 Subject: [PATCH] Add license header ... with header of course ;D --- configuration.go | 16 ++++++++++++++++ configuration_test.go | 16 ++++++++++++++++ header.go | 16 ++++++++++++++++ header_test.go | 16 ++++++++++++++++ license-header.txt | 13 +++++++++++++ license.json | 10 ++++++++++ line_comment.go | 16 ++++++++++++++++ main.go | 16 ++++++++++++++++ 8 files changed, 119 insertions(+) create mode 100644 license-header.txt create mode 100644 license.json diff --git a/configuration.go b/configuration.go index 54bd9c0..148a791 100644 --- a/configuration.go +++ b/configuration.go @@ -1,3 +1,19 @@ +/* + * Copyright 2018 Florent Biville (@fbiville) + * + * 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 + * + * http://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 import ( diff --git a/configuration_test.go b/configuration_test.go index 1bceb92..0e3ccb1 100644 --- a/configuration_test.go +++ b/configuration_test.go @@ -1,3 +1,19 @@ +/* + * Copyright 2018 Florent Biville (@fbiville) + * + * 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 + * + * http://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_test import ( diff --git a/header.go b/header.go index fa08cad..6285491 100644 --- a/header.go +++ b/header.go @@ -1,3 +1,19 @@ +/* + * Copyright 2018 Florent Biville (@fbiville) + * + * 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 + * + * http://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 import ( diff --git a/header_test.go b/header_test.go index 59cddb5..1560170 100644 --- a/header_test.go +++ b/header_test.go @@ -1,3 +1,19 @@ +/* + * Copyright 2018 Florent Biville (@fbiville) + * + * 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 + * + * http://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 import ( diff --git a/license-header.txt b/license-header.txt new file mode 100644 index 0000000..66fd495 --- /dev/null +++ b/license-header.txt @@ -0,0 +1,13 @@ +Copyright {{.Year}} {{.Owner}} + +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 + + http://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. \ No newline at end of file diff --git a/license.json b/license.json new file mode 100644 index 0000000..50ecbe8 --- /dev/null +++ b/license.json @@ -0,0 +1,10 @@ +{ + "headerFile": "./license-header.txt", + "style": "SlashStar", + "includes": ["**/*.go"], + "excludes": ["vendor/**/*"], + "data": { + "Year": "2018", + "Owner": "Florent Biville (@fbiville)" + } +} diff --git a/line_comment.go b/line_comment.go index 98f6815..af3d769 100644 --- a/line_comment.go +++ b/line_comment.go @@ -1,3 +1,19 @@ +/* + * Copyright 2018 Florent Biville (@fbiville) + * + * 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 + * + * http://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 import ( diff --git a/main.go b/main.go index 7c9a431..ee11c28 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,19 @@ +/* + * Copyright 2018 Florent Biville (@fbiville) + * + * 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 + * + * http://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 import (