From c9a958bc8400a18336d69ef920827e776a00a117 Mon Sep 17 00:00:00 2001 From: Nic Cope Date: Mon, 21 Apr 2025 13:35:39 -0700 Subject: [PATCH] Rename pkg/helpers to pkg/convert Helpers as a package name doesn't say much. Prefer a package name that's more descriptive of what the package does. Signed-off-by: Nic Cope --- pkg/{helpers/helpers.go => convert/convert.go} | 4 ++-- .../convert_test.go} | 18 +++++++++++++++++- 2 files changed, 19 insertions(+), 3 deletions(-) rename pkg/{helpers/helpers.go => convert/convert.go} (97%) rename pkg/{helpers/helpers_test.go => convert/convert_test.go} (80%) diff --git a/pkg/helpers/helpers.go b/pkg/convert/convert.go similarity index 97% rename from pkg/helpers/helpers.go rename to pkg/convert/convert.go index 60caae1..159f52e 100644 --- a/pkg/helpers/helpers.go +++ b/pkg/convert/convert.go @@ -14,8 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ -// Package helpers contains utilities for working with pointers. -package helpers +// Package convert contains utilities for converting to and from pointers. +package convert import ( "strconv" diff --git a/pkg/helpers/helpers_test.go b/pkg/convert/convert_test.go similarity index 80% rename from pkg/helpers/helpers_test.go rename to pkg/convert/convert_test.go index 6ee76d6..c788772 100644 --- a/pkg/helpers/helpers_test.go +++ b/pkg/convert/convert_test.go @@ -1,4 +1,20 @@ -package helpers +/* +Copyright 2025 The Crossplane Authors. + +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 convert import ( "testing"