From ff327fe76a8b8c061ba634cfeae640d4d084b467 Mon Sep 17 00:00:00 2001 From: Ildar Karymov Date: Wed, 6 Mar 2024 16:23:34 +0400 Subject: [PATCH 1/2] Switch to go.tomakado.io --- binary/tree_test.go | 2 +- go.mod | 2 +- list/list_test.go | 2 +- stack/stack_test.go | 2 +- tree/tree.go | 2 +- tree/tree_test.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/binary/tree_test.go b/binary/tree_test.go index 9549e93..adcf6d1 100644 --- a/binary/tree_test.go +++ b/binary/tree_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/tomakado/containers/binary" + "go.tomakado.io/containers/binary" ) func TestAppend(t *testing.T) { diff --git a/go.mod b/go.mod index 2671374..9775faf 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/tomakado/containers +module go.tomakado.io/containers go 1.19 diff --git a/list/list_test.go b/list/list_test.go index a6c9bf6..9381669 100644 --- a/list/list_test.go +++ b/list/list_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/tomakado/containers/list" + "go.tomakado.io/containers/list" ) func TestList(t *testing.T) { diff --git a/stack/stack_test.go b/stack/stack_test.go index 4eda58a..2f8a4ea 100644 --- a/stack/stack_test.go +++ b/stack/stack_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/tomakado/containers/stack" + "go.tomakado.io/containers/stack" ) func TestStack(t *testing.T) { diff --git a/tree/tree.go b/tree/tree.go index 3fdaa18..cf76475 100644 --- a/tree/tree.go +++ b/tree/tree.go @@ -1,6 +1,6 @@ package tree -import "github.com/tomakado/containers/queue" +import "go.tomakado.io/containers/queue" // Node is a node of N-ary tree. // Implementation is based on code by Ilija Eftimov (URL: https://ieftimov.com/posts/golang-datastructures-trees/). diff --git a/tree/tree_test.go b/tree/tree_test.go index 70081b3..8e2b9da 100644 --- a/tree/tree_test.go +++ b/tree/tree_test.go @@ -4,7 +4,7 @@ import ( "testing" "github.com/stretchr/testify/assert" - "github.com/tomakado/containers/tree" + "go.tomakado.io/containers/tree" ) func TestAppend(t *testing.T) { From 413ed6b3de1817ce7e56fe53bde924d1c54afe34 Mon Sep 17 00:00:00 2001 From: Ildar Karymov Date: Wed, 6 Mar 2024 16:28:31 +0400 Subject: [PATCH 2/2] Update README --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3cd4e18..b2e9761 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,13 @@ -# containers [![Go Reference](https://pkg.go.dev/badge/github.com/tomakado/containers.svg)](https://pkg.go.dev/github.com/tomakado/containers) [![Coverage Status](https://coveralls.io/repos/github/tomakado/containers/badge.svg?branch=master)](https://coveralls.io/github/tomakado/containers?branch=master) [![Go Report Card](https://goreportcard.com/badge/github.com/tomakado/containers)](https://goreportcard.com/report/github.com/tomakado/containers) +# containers [![Go Reference](https://pkg.go.dev/badge/go.tomakado.io/containers.svg)](https://pkg.go.dev/go.tomakado.io/containers) [![Coverage Status](https://coveralls.io/repos/github/tomakado/containers/badge.svg?branch=master)](https://coveralls.io/github/tomakado/containers?branch=master) [![Go Report Card](https://goreportcard.com/badge/go.tomakado.io/containers)](https://goreportcard.com/report/go.tomakado.io/containers) Collection of simple generic data structures currently missing in Go's standard library. +# Install + +```bash +go get -u go.tomakado.io/containers +``` + # Data structures * Set