From 3b6732cc58d41afa99a4b63621f8443080474cdb Mon Sep 17 00:00:00 2001 From: Samuel Becker <12024604-beckersamuel9@users.noreply.gitlab.com> Date: Sun, 7 Aug 2022 22:01:32 +0200 Subject: [PATCH] Fix some package collision problem --- pkg/{datastructs => containers}/generics.go | 2 +- pkg/{datastructs => containers}/queues.go | 2 +- pkg/{datastructs => containers}/stacks.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename pkg/{datastructs => containers}/generics.go (97%) rename pkg/{datastructs => containers}/queues.go (99%) rename pkg/{datastructs => containers}/stacks.go (98%) diff --git a/pkg/datastructs/generics.go b/pkg/containers/generics.go similarity index 97% rename from pkg/datastructs/generics.go rename to pkg/containers/generics.go index 7b42398..a06ba02 100644 --- a/pkg/datastructs/generics.go +++ b/pkg/containers/generics.go @@ -1,4 +1,4 @@ -package datastructs +package containers type ChainElem[T any] struct { Elem *T diff --git a/pkg/datastructs/queues.go b/pkg/containers/queues.go similarity index 99% rename from pkg/datastructs/queues.go rename to pkg/containers/queues.go index b953c4d..4138320 100644 --- a/pkg/datastructs/queues.go +++ b/pkg/containers/queues.go @@ -1,4 +1,4 @@ -package datastructs +package containers import ( "encoding/json" diff --git a/pkg/datastructs/stacks.go b/pkg/containers/stacks.go similarity index 98% rename from pkg/datastructs/stacks.go rename to pkg/containers/stacks.go index 4d2dc90..4bb70cd 100644 --- a/pkg/datastructs/stacks.go +++ b/pkg/containers/stacks.go @@ -1,4 +1,4 @@ -package DataStructs +package containers import ( "encoding/json"