From 1d4e5c49d0642d84e50986c181e114741e15be79 Mon Sep 17 00:00:00 2001 From: Constantine Zavezeon <31433211+Kwynto@users.noreply.github.com> Date: Sun, 14 May 2023 00:35:01 +0300 Subject: [PATCH 1/5] ordinary back --- pkg/ordinary/ordinary.go => ordinary.go | 0 pkg/ordinary/ordinary_test.go => ordinary_test.go | 0 {pkg/ordinary/testdata => testdata}/.keep | 0 3 files changed, 0 insertions(+), 0 deletions(-) rename pkg/ordinary/ordinary.go => ordinary.go (100%) rename pkg/ordinary/ordinary_test.go => ordinary_test.go (100%) rename {pkg/ordinary/testdata => testdata}/.keep (100%) diff --git a/pkg/ordinary/ordinary.go b/ordinary.go similarity index 100% rename from pkg/ordinary/ordinary.go rename to ordinary.go diff --git a/pkg/ordinary/ordinary_test.go b/ordinary_test.go similarity index 100% rename from pkg/ordinary/ordinary_test.go rename to ordinary_test.go diff --git a/pkg/ordinary/testdata/.keep b/testdata/.keep similarity index 100% rename from pkg/ordinary/testdata/.keep rename to testdata/.keep From b480e30f0e5aff2796f7976bc34f2c0b2ae349bc Mon Sep 17 00:00:00 2001 From: Constantine Zavezeon <31433211+Kwynto@users.noreply.github.com> Date: Sun, 14 May 2023 01:02:08 +0300 Subject: [PATCH 2/5] curiosity back --- pkg/curiosity/curiosity.go => curiosity.go | 0 .../curiosity_test.go => curiosity_test.go | 0 pkg/curiosity/testdata/.keep | 0 {pkg/curiosity/testdata => testdata}/main.zip | Bin 4 files changed, 0 insertions(+), 0 deletions(-) rename pkg/curiosity/curiosity.go => curiosity.go (100%) rename pkg/curiosity/curiosity_test.go => curiosity_test.go (100%) delete mode 100644 pkg/curiosity/testdata/.keep rename {pkg/curiosity/testdata => testdata}/main.zip (100%) diff --git a/pkg/curiosity/curiosity.go b/curiosity.go similarity index 100% rename from pkg/curiosity/curiosity.go rename to curiosity.go diff --git a/pkg/curiosity/curiosity_test.go b/curiosity_test.go similarity index 100% rename from pkg/curiosity/curiosity_test.go rename to curiosity_test.go diff --git a/pkg/curiosity/testdata/.keep b/pkg/curiosity/testdata/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/pkg/curiosity/testdata/main.zip b/testdata/main.zip similarity index 100% rename from pkg/curiosity/testdata/main.zip rename to testdata/main.zip From 89fff3aa78535e2f861a9e17152e083684fc696d Mon Sep 17 00:00:00 2001 From: Constantine Zavezeon <31433211+Kwynto@users.noreply.github.com> Date: Sun, 14 May 2023 02:21:34 +0300 Subject: [PATCH 3/5] edited readme.md --- README.md | 23 ++++++++----------- ...hs87&kdhf9*&fkshd97kjk^(_@E.,dsj989sd||}NF | 0 2 files changed, 10 insertions(+), 13 deletions(-) create mode 100644 testdata/ksh3khs87&kdhf9*&fkshd97kjk^(_@E.,dsj989sd||}NF diff --git a/README.md b/README.md index e1548d3..b1c47a7 100644 --- a/README.md +++ b/README.md @@ -21,11 +21,7 @@ You can quickly connect all the tools from this set In your Go code, connect the blanks like this: ```go import "github.com/Kwynto/preserves/pkg/ordinary" -``` -or -```go -import "github.com/Kwynto/preserves/pkg/curiosity" -``` +``` and more. When you stop using this package, do not forget to get rid of unnecessary dependencies in your project @@ -37,7 +33,7 @@ If you want to increase the efficiency of your code, then you will need to take To do this, you will need to first copy the entire repository to yourself. > git clone https://github.com/Kwynto/preserves.git -There are two main packages in this repository `./pkg/ordinary` for frequently used functions and `./pkg/curiosity` for rarely used functions, as well as other packages. +There are two main files in this repository `./ordinary.go` for frequently used functions and `./curiosity.go` for rarely used functions, as well as other packages. You can also contribute to this repository through a pull request and this toolbox will be our shared one. If you want to add your own function to the repository, don't forget to write a test and a benchmark. @@ -45,8 +41,6 @@ You can create your own package like `./pkg/`. **Check out the documentation** -First you need to go to the folder with any package from this repository, for example `./pkg/ordinary`. - Look at the documentation in two steps. First, in the console, run: > godoc -http=:8080 @@ -66,10 +60,14 @@ If your IDE is good enough, then the documentation for functions and methods wil **Testing** Run tests: -> go test -v +> go test ordinary.go ordinary_test.go -v +or +> go test curiosity.go curiosity_test.go -v Run tests showing code coverage: -> go test -cover -v +> > go test ordinary.go ordinary_test.go -v -cover +or +> go test curiosity.go curiosity_test.go -v -cover You can view code coverage in detail in your web browser. To do this, you need to sequentially execute two commands in the console: @@ -79,9 +77,8 @@ To do this, you need to sequentially execute two commands in the console: **Performance** You can look at code performance tests: -> go test -benchmem -bench="." curiosity.go curiosity_test.go - -or +> go test -benchmem -bench="." curiosity.go curiosity_test.go +or > go test -benchmem -bench="." ordinary.go ordinary_test.go **[⬆ back to top](#preserves)** diff --git a/testdata/ksh3khs87&kdhf9*&fkshd97kjk^(_@E.,dsj989sd||}NF b/testdata/ksh3khs87&kdhf9*&fkshd97kjk^(_@E.,dsj989sd||}NF new file mode 100644 index 0000000..e69de29 From adaa3ede8b763ad14cd08159bd8e4f4984196063 Mon Sep 17 00:00:00 2001 From: Constantine Zavezeon <31433211+Kwynto@users.noreply.github.com> Date: Sun, 14 May 2023 02:42:32 +0300 Subject: [PATCH 4/5] fix readme --- testdata/ksh3khs87&kdhf9*&fkshd97kjk^(_@E.,dsj989sd||}NF | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 testdata/ksh3khs87&kdhf9*&fkshd97kjk^(_@E.,dsj989sd||}NF diff --git a/testdata/ksh3khs87&kdhf9*&fkshd97kjk^(_@E.,dsj989sd||}NF b/testdata/ksh3khs87&kdhf9*&fkshd97kjk^(_@E.,dsj989sd||}NF deleted file mode 100644 index e69de29..0000000 From c4669723746cd2cd53a50b745ec82e68366a6155 Mon Sep 17 00:00:00 2001 From: Constantine Zavezeon <31433211+Kwynto@users.noreply.github.com> Date: Sun, 14 May 2023 02:56:36 +0300 Subject: [PATCH 5/5] fix connect --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b1c47a7..19aadb9 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,11 @@ You can quickly connect all the tools from this set In your Go code, connect the blanks like this: ```go -import "github.com/Kwynto/preserves/pkg/ordinary" +import "github.com/Kwynto/preserves/ordinary" +``` +or +```go +import "github.com/Kwynto/preserves/curiosity" ``` and more.