From 6d6a6899a0047ec5bc29c2242977eec2bd39bae3 Mon Sep 17 00:00:00 2001 From: konstantin Date: Fri, 30 Sep 2022 01:06:28 +0200 Subject: [PATCH] rename `pkg` to `conversion` (#4) --- README.md | 2 +- conversion/gastagconverter.go | 2 +- conversion/gastagconverter_test.go | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index ea1ea9c..373f06c 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Then you need a conversion logic for your `time.Time`s. This library does the conversion for you. ## How To Use -todo: add mwe here +See [Go Playground](https://go.dev/play/p/6JrqbfswLc7) for a minimal working example. ## Implicit Requirements diff --git a/conversion/gastagconverter.go b/conversion/gastagconverter.go index 7edac44..c2e0659 100644 --- a/conversion/gastagconverter.go +++ b/conversion/gastagconverter.go @@ -1,4 +1,4 @@ -package pkg +package conversion import ( "fmt" diff --git a/conversion/gastagconverter_test.go b/conversion/gastagconverter_test.go index 601f4b5..547e310 100644 --- a/conversion/gastagconverter_test.go +++ b/conversion/gastagconverter_test.go @@ -1,4 +1,4 @@ -package pkg_test +package conversion_test import ( "github.com/corbym/gocrest/is" @@ -26,8 +26,8 @@ func TestInit(t *testing.T) { suite.Run(t, new(Suite)) } -func getBerlinConverter() pkg.GasTagConverter { - return pkg.NewGasTagConverter("Europe/Berlin") +func getBerlinConverter() conversion.GasTagConverter { + return conversion.NewGasTagConverter("Europe/Berlin") } func (s *Suite) Test_IsGermanMidnight_true() {