From 8dc51e411a39c5035e7fdc364581faec62b9d2af Mon Sep 17 00:00:00 2001 From: Riley Rice Date: Wed, 21 Jan 2026 17:07:49 -0800 Subject: [PATCH] chore: added apache 2.0 license headers --- .github/workflows/ci.yaml | 14 ++++++++++++++ .github/workflows/publish.yaml | 14 ++++++++++++++ cmd/goanywhere/main.go | 14 ++++++++++++++ internal/cli/build.go | 14 ++++++++++++++ internal/cli/cli.go | 14 ++++++++++++++ internal/cli/cli_test.go | 14 ++++++++++++++ internal/cli/generate.go | 14 ++++++++++++++ internal/core/factory/factory.go | 14 ++++++++++++++ internal/core/factory/factory_test.go | 14 ++++++++++++++ internal/core/parser.go | 14 ++++++++++++++ internal/core/parser_test.go | 14 ++++++++++++++ internal/core/plugin.go | 14 ++++++++++++++ internal/core/types.go | 14 ++++++++++++++ internal/version/version.go | 14 ++++++++++++++ internal/version/version_test.go | 14 ++++++++++++++ plugins/cgo/mapper.go | 14 ++++++++++++++ plugins/cgo/mapper_test.go | 14 ++++++++++++++ plugins/cgo/plugin.go | 14 ++++++++++++++ plugins/cgo/plugin_test.go | 14 ++++++++++++++ plugins/python/mapper.go | 14 ++++++++++++++ plugins/python/mapper_test.go | 14 ++++++++++++++ plugins/python/plugin.go | 14 ++++++++++++++ plugins/python/plugin_test.go | 14 ++++++++++++++ tests/fixtures/complex/complex.go | 14 ++++++++++++++ tests/fixtures/simple/simple.go | 14 ++++++++++++++ tests/integration/bindings_test.go | 14 ++++++++++++++ 26 files changed, 364 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 7e574ff..172d419 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Riley Rice +# +# 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. + name: CI on: diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 5138fc4..8d9aa9f 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,3 +1,17 @@ +# Copyright 2026 Riley Rice +# +# 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. + name: Publish on: diff --git a/cmd/goanywhere/main.go b/cmd/goanywhere/main.go index e2c10e1..3de7745 100644 --- a/cmd/goanywhere/main.go +++ b/cmd/goanywhere/main.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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/internal/cli/build.go b/internal/cli/build.go index 6df772b..775e63c 100644 --- a/internal/cli/build.go +++ b/internal/cli/build.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 cli import ( diff --git a/internal/cli/cli.go b/internal/cli/cli.go index d6762c8..efb385a 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 cli import ( diff --git a/internal/cli/cli_test.go b/internal/cli/cli_test.go index a63ff2a..af08ad7 100644 --- a/internal/cli/cli_test.go +++ b/internal/cli/cli_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 cli import ( diff --git a/internal/cli/generate.go b/internal/cli/generate.go index 97405b2..89b8c4e 100644 --- a/internal/cli/generate.go +++ b/internal/cli/generate.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 cli import ( diff --git a/internal/core/factory/factory.go b/internal/core/factory/factory.go index 1d612af..02293fe 100644 --- a/internal/core/factory/factory.go +++ b/internal/core/factory/factory.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 factory import ( diff --git a/internal/core/factory/factory_test.go b/internal/core/factory/factory_test.go index 82f69f8..f0a69b0 100644 --- a/internal/core/factory/factory_test.go +++ b/internal/core/factory/factory_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 factory import ( diff --git a/internal/core/parser.go b/internal/core/parser.go index f81bd4c..60acc6e 100644 --- a/internal/core/parser.go +++ b/internal/core/parser.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 core import ( diff --git a/internal/core/parser_test.go b/internal/core/parser_test.go index c1958c2..6fe2866 100644 --- a/internal/core/parser_test.go +++ b/internal/core/parser_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 core import ( diff --git a/internal/core/plugin.go b/internal/core/plugin.go index 799b196..6728970 100644 --- a/internal/core/plugin.go +++ b/internal/core/plugin.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 core // BuildOptions contains configuration for the Build method diff --git a/internal/core/types.go b/internal/core/types.go index 47c0a01..3b8252f 100644 --- a/internal/core/types.go +++ b/internal/core/types.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 core // TypeKind represents the kind of Go type diff --git a/internal/version/version.go b/internal/version/version.go index 5090286..0622a03 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 version var VERSION string = "v0.0.0" diff --git a/internal/version/version_test.go b/internal/version/version_test.go index 69bc18a..45ddb77 100644 --- a/internal/version/version_test.go +++ b/internal/version/version_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 version import ( diff --git a/plugins/cgo/mapper.go b/plugins/cgo/mapper.go index 3712a99..57a2513 100644 --- a/plugins/cgo/mapper.go +++ b/plugins/cgo/mapper.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 cgo import ( diff --git a/plugins/cgo/mapper_test.go b/plugins/cgo/mapper_test.go index 085057b..3fd2524 100644 --- a/plugins/cgo/mapper_test.go +++ b/plugins/cgo/mapper_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 cgo import ( diff --git a/plugins/cgo/plugin.go b/plugins/cgo/plugin.go index 2f2f98b..8c89bc7 100644 --- a/plugins/cgo/plugin.go +++ b/plugins/cgo/plugin.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 cgo import ( diff --git a/plugins/cgo/plugin_test.go b/plugins/cgo/plugin_test.go index a7c5d41..46e7cd9 100644 --- a/plugins/cgo/plugin_test.go +++ b/plugins/cgo/plugin_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 cgo import ( diff --git a/plugins/python/mapper.go b/plugins/python/mapper.go index d346f42..1107c7e 100644 --- a/plugins/python/mapper.go +++ b/plugins/python/mapper.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 python import ( diff --git a/plugins/python/mapper_test.go b/plugins/python/mapper_test.go index 41e8d72..d1e989a 100644 --- a/plugins/python/mapper_test.go +++ b/plugins/python/mapper_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 python import ( diff --git a/plugins/python/plugin.go b/plugins/python/plugin.go index 05a6f8e..06abfcb 100644 --- a/plugins/python/plugin.go +++ b/plugins/python/plugin.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 python import ( diff --git a/plugins/python/plugin_test.go b/plugins/python/plugin_test.go index 3af0ec4..4050f3f 100644 --- a/plugins/python/plugin_test.go +++ b/plugins/python/plugin_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 python import ( diff --git a/tests/fixtures/complex/complex.go b/tests/fixtures/complex/complex.go index 90e15ab..fe89d29 100644 --- a/tests/fixtures/complex/complex.go +++ b/tests/fixtures/complex/complex.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 complex // Config represents a configuration with various types diff --git a/tests/fixtures/simple/simple.go b/tests/fixtures/simple/simple.go index 03da9f7..49c2b59 100644 --- a/tests/fixtures/simple/simple.go +++ b/tests/fixtures/simple/simple.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 simple // Point represents a 2D point diff --git a/tests/integration/bindings_test.go b/tests/integration/bindings_test.go index 7c34e72..c6b6cce 100644 --- a/tests/integration/bindings_test.go +++ b/tests/integration/bindings_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Riley Rice +// +// 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 integration import (