From b6bd2052a4acbc13b296f894306f24838dcd8af0 Mon Sep 17 00:00:00 2001 From: re Date: Mon, 12 Dec 2022 20:10:43 +0300 Subject: [PATCH] fix repos --- .coverprofile | 170 ++++++++++++++++++++++++------------------------ .travis.yml | 2 +- CONTRIBUTING.md | 2 +- README.md | 12 ++-- example/main.go | 4 +- go.mod | 2 +- go.sum | 20 ------ 7 files changed, 96 insertions(+), 116 deletions(-) diff --git a/.coverprofile b/.coverprofile index 6cfe51c..99aa7c5 100644 --- a/.coverprofile +++ b/.coverprofile @@ -1,86 +1,86 @@ mode: set -github.com/gobeam/stringy/helper.go:10.70,11.14 1 1 -github.com/gobeam/stringy/helper.go:15.2,16.39 2 1 -github.com/gobeam/stringy/helper.go:19.2,24.14 5 1 -github.com/gobeam/stringy/helper.go:11.14,14.3 2 1 -github.com/gobeam/stringy/helper.go:16.39,17.30 1 1 -github.com/gobeam/stringy/helper.go:27.49,29.26 2 1 -github.com/gobeam/stringy/helper.go:32.2,33.11 2 1 -github.com/gobeam/stringy/helper.go:29.26,31.3 1 1 -github.com/gobeam/stringy/helper.go:36.39,37.20 1 1 -github.com/gobeam/stringy/helper.go:42.2,42.8 1 1 -github.com/gobeam/stringy/helper.go:37.20,39.3 1 1 -github.com/gobeam/stringy/helper.go:39.8,41.3 1 1 -github.com/gobeam/stringy/helper.go:45.62,48.57 3 1 -github.com/gobeam/stringy/helper.go:51.2,52.21 2 1 -github.com/gobeam/stringy/helper.go:57.2,58.46 2 1 -github.com/gobeam/stringy/helper.go:48.57,50.3 1 1 -github.com/gobeam/stringy/helper.go:52.21,54.3 1 1 -github.com/gobeam/stringy/helper.go:54.8,56.3 1 1 -github.com/gobeam/stringy/helper.go:61.33,62.24 1 1 -github.com/gobeam/stringy/helper.go:65.2,65.11 1 1 -github.com/gobeam/stringy/helper.go:62.24,64.3 1 1 -github.com/gobeam/stringy/stringy.go:47.41,49.2 1 1 -github.com/gobeam/stringy/stringy.go:55.63,56.49 1 1 -github.com/gobeam/stringy/stringy.go:60.2,65.56 5 1 -github.com/gobeam/stringy/stringy.go:68.2,68.52 1 1 -github.com/gobeam/stringy/stringy.go:73.2,74.10 2 1 -github.com/gobeam/stringy/stringy.go:56.49,58.3 1 1 -github.com/gobeam/stringy/stringy.go:65.56,67.3 1 1 -github.com/gobeam/stringy/stringy.go:68.52,70.3 1 1 -github.com/gobeam/stringy/stringy.go:70.8,70.27 1 1 -github.com/gobeam/stringy/stringy.go:70.27,72.3 1 1 -github.com/gobeam/stringy/stringy.go:80.32,84.9 4 1 -github.com/gobeam/stringy/stringy.go:87.2,88.8 2 1 -github.com/gobeam/stringy/stringy.go:91.2,91.41 1 1 -github.com/gobeam/stringy/stringy.go:84.9,86.3 1 1 -github.com/gobeam/stringy/stringy.go:88.8,90.3 1 1 -github.com/gobeam/stringy/stringy.go:100.50,104.33 3 1 -github.com/gobeam/stringy/stringy.go:107.2,107.36 1 1 -github.com/gobeam/stringy/stringy.go:104.33,106.3 1 1 -github.com/gobeam/stringy/stringy.go:112.51,114.29 2 1 -github.com/gobeam/stringy/stringy.go:119.2,119.13 1 1 -github.com/gobeam/stringy/stringy.go:114.29,115.37 1 1 -github.com/gobeam/stringy/stringy.go:115.37,117.4 1 1 -github.com/gobeam/stringy/stringy.go:126.80,128.40 2 1 -github.com/gobeam/stringy/stringy.go:131.2,133.10 3 1 -github.com/gobeam/stringy/stringy.go:128.40,130.3 1 1 -github.com/gobeam/stringy/stringy.go:137.42,140.25 3 1 -github.com/gobeam/stringy/stringy.go:143.2,143.24 1 1 -github.com/gobeam/stringy/stringy.go:140.25,141.33 1 1 -github.com/gobeam/stringy/stringy.go:148.30,150.2 1 1 -github.com/gobeam/stringy/stringy.go:158.62,163.2 4 1 -github.com/gobeam/stringy/stringy.go:166.41,170.25 4 1 -github.com/gobeam/stringy/stringy.go:173.2,174.30 2 1 -github.com/gobeam/stringy/stringy.go:170.25,171.33 1 1 -github.com/gobeam/stringy/stringy.go:179.34,181.26 2 1 -github.com/gobeam/stringy/stringy.go:184.2,184.14 1 1 -github.com/gobeam/stringy/stringy.go:181.26,183.3 1 1 -github.com/gobeam/stringy/stringy.go:188.34,193.2 4 1 -github.com/gobeam/stringy/stringy.go:199.62,203.27 4 1 -github.com/gobeam/stringy/stringy.go:206.2,206.17 1 1 -github.com/gobeam/stringy/stringy.go:203.27,205.3 1 1 -github.com/gobeam/stringy/stringy.go:207.13,210.25 3 1 -github.com/gobeam/stringy/stringy.go:211.12,214.41 3 1 -github.com/gobeam/stringy/stringy.go:215.12,218.156 3 1 -github.com/gobeam/stringy/stringy.go:219.10,220.15 1 1 -github.com/gobeam/stringy/stringy.go:226.49,229.34 3 1 -github.com/gobeam/stringy/stringy.go:238.2,238.24 1 1 -github.com/gobeam/stringy/stringy.go:229.34,234.13 2 1 -github.com/gobeam/stringy/stringy.go:234.13,236.4 1 1 -github.com/gobeam/stringy/stringy.go:244.61,247.2 2 1 -github.com/gobeam/stringy/stringy.go:253.60,256.2 2 1 -github.com/gobeam/stringy/stringy.go:260.34,263.57 3 1 -github.com/gobeam/stringy/stringy.go:266.2,266.18 1 1 -github.com/gobeam/stringy/stringy.go:263.57,265.3 1 1 -github.com/gobeam/stringy/stringy.go:271.34,276.43 4 1 -github.com/gobeam/stringy/stringy.go:279.2,279.23 1 1 -github.com/gobeam/stringy/stringy.go:276.43,278.3 1 1 -github.com/gobeam/stringy/stringy.go:287.62,292.2 4 1 -github.com/gobeam/stringy/stringy.go:296.46,299.2 2 1 -github.com/gobeam/stringy/stringy.go:304.60,306.40 2 1 -github.com/gobeam/stringy/stringy.go:309.2,309.35 1 1 -github.com/gobeam/stringy/stringy.go:306.40,308.3 1 1 -github.com/gobeam/stringy/stringy.go:314.43,317.2 2 1 -github.com/gobeam/stringy/stringy.go:321.34,324.2 2 1 -github.com/gobeam/stringy/stringy.go:328.34,331.2 2 1 +git.internal/re/stringy/helper.go:10.70,11.14 1 1 +git.internal/re/stringy/helper.go:15.2,16.39 2 1 +git.internal/re/stringy/helper.go:19.2,24.14 5 1 +git.internal/re/stringy/helper.go:11.14,14.3 2 1 +git.internal/re/stringy/helper.go:16.39,17.30 1 1 +git.internal/re/stringy/helper.go:27.49,29.26 2 1 +git.internal/re/stringy/helper.go:32.2,33.11 2 1 +git.internal/re/stringy/helper.go:29.26,31.3 1 1 +git.internal/re/stringy/helper.go:36.39,37.20 1 1 +git.internal/re/stringy/helper.go:42.2,42.8 1 1 +git.internal/re/stringy/helper.go:37.20,39.3 1 1 +git.internal/re/stringy/helper.go:39.8,41.3 1 1 +git.internal/re/stringy/helper.go:45.62,48.57 3 1 +git.internal/re/stringy/helper.go:51.2,52.21 2 1 +git.internal/re/stringy/helper.go:57.2,58.46 2 1 +git.internal/re/stringy/helper.go:48.57,50.3 1 1 +git.internal/re/stringy/helper.go:52.21,54.3 1 1 +git.internal/re/stringy/helper.go:54.8,56.3 1 1 +git.internal/re/stringy/helper.go:61.33,62.24 1 1 +git.internal/re/stringy/helper.go:65.2,65.11 1 1 +git.internal/re/stringy/helper.go:62.24,64.3 1 1 +git.internal/re/stringy/stringy.go:47.41,49.2 1 1 +git.internal/re/stringy/stringy.go:55.63,56.49 1 1 +git.internal/re/stringy/stringy.go:60.2,65.56 5 1 +git.internal/re/stringy/stringy.go:68.2,68.52 1 1 +git.internal/re/stringy/stringy.go:73.2,74.10 2 1 +git.internal/re/stringy/stringy.go:56.49,58.3 1 1 +git.internal/re/stringy/stringy.go:65.56,67.3 1 1 +git.internal/re/stringy/stringy.go:68.52,70.3 1 1 +git.internal/re/stringy/stringy.go:70.8,70.27 1 1 +git.internal/re/stringy/stringy.go:70.27,72.3 1 1 +git.internal/re/stringy/stringy.go:80.32,84.9 4 1 +git.internal/re/stringy/stringy.go:87.2,88.8 2 1 +git.internal/re/stringy/stringy.go:91.2,91.41 1 1 +git.internal/re/stringy/stringy.go:84.9,86.3 1 1 +git.internal/re/stringy/stringy.go:88.8,90.3 1 1 +git.internal/re/stringy/stringy.go:100.50,104.33 3 1 +git.internal/re/stringy/stringy.go:107.2,107.36 1 1 +git.internal/re/stringy/stringy.go:104.33,106.3 1 1 +git.internal/re/stringy/stringy.go:112.51,114.29 2 1 +git.internal/re/stringy/stringy.go:119.2,119.13 1 1 +git.internal/re/stringy/stringy.go:114.29,115.37 1 1 +git.internal/re/stringy/stringy.go:115.37,117.4 1 1 +git.internal/re/stringy/stringy.go:126.80,128.40 2 1 +git.internal/re/stringy/stringy.go:131.2,133.10 3 1 +git.internal/re/stringy/stringy.go:128.40,130.3 1 1 +git.internal/re/stringy/stringy.go:137.42,140.25 3 1 +git.internal/re/stringy/stringy.go:143.2,143.24 1 1 +git.internal/re/stringy/stringy.go:140.25,141.33 1 1 +git.internal/re/stringy/stringy.go:148.30,150.2 1 1 +git.internal/re/stringy/stringy.go:158.62,163.2 4 1 +git.internal/re/stringy/stringy.go:166.41,170.25 4 1 +git.internal/re/stringy/stringy.go:173.2,174.30 2 1 +git.internal/re/stringy/stringy.go:170.25,171.33 1 1 +git.internal/re/stringy/stringy.go:179.34,181.26 2 1 +git.internal/re/stringy/stringy.go:184.2,184.14 1 1 +git.internal/re/stringy/stringy.go:181.26,183.3 1 1 +git.internal/re/stringy/stringy.go:188.34,193.2 4 1 +git.internal/re/stringy/stringy.go:199.62,203.27 4 1 +git.internal/re/stringy/stringy.go:206.2,206.17 1 1 +git.internal/re/stringy/stringy.go:203.27,205.3 1 1 +git.internal/re/stringy/stringy.go:207.13,210.25 3 1 +git.internal/re/stringy/stringy.go:211.12,214.41 3 1 +git.internal/re/stringy/stringy.go:215.12,218.156 3 1 +git.internal/re/stringy/stringy.go:219.10,220.15 1 1 +git.internal/re/stringy/stringy.go:226.49,229.34 3 1 +git.internal/re/stringy/stringy.go:238.2,238.24 1 1 +git.internal/re/stringy/stringy.go:229.34,234.13 2 1 +git.internal/re/stringy/stringy.go:234.13,236.4 1 1 +git.internal/re/stringy/stringy.go:244.61,247.2 2 1 +git.internal/re/stringy/stringy.go:253.60,256.2 2 1 +git.internal/re/stringy/stringy.go:260.34,263.57 3 1 +git.internal/re/stringy/stringy.go:266.2,266.18 1 1 +git.internal/re/stringy/stringy.go:263.57,265.3 1 1 +git.internal/re/stringy/stringy.go:271.34,276.43 4 1 +git.internal/re/stringy/stringy.go:279.2,279.23 1 1 +git.internal/re/stringy/stringy.go:276.43,278.3 1 1 +git.internal/re/stringy/stringy.go:287.62,292.2 4 1 +git.internal/re/stringy/stringy.go:296.46,299.2 2 1 +git.internal/re/stringy/stringy.go:304.60,306.40 2 1 +git.internal/re/stringy/stringy.go:309.2,309.35 1 1 +git.internal/re/stringy/stringy.go:306.40,308.3 1 1 +git.internal/re/stringy/stringy.go:314.43,317.2 2 1 +git.internal/re/stringy/stringy.go:321.34,324.2 2 1 +git.internal/re/stringy/stringy.go:328.34,331.2 2 1 diff --git a/.travis.yml b/.travis.yml index f849ffc..f6ae9e0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: go sudo: false -go_import_path: github.com/gobeam/stringy +go_import_path: git.internal/re/stringy go: - 1.13 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a7675bc..48e87b6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -10,7 +10,7 @@ We love your input! We want to make contributing to this project as easy and tra ## Any contributions you make will be under the MIT Software License In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern. -## Report bugs using Github's [issues](https://github.com/gobeam/stringy/issues) +## Report bugs using Github's [issues](https://git.internal/re/stringy/issues) A relevant coding style guideline is the [Go Code Review Comments](https://code.google.com/p/go-wiki/wiki/CodeReviewComments). diff --git a/README.md b/README.md index 9c3ae80..86397ec 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Golang String manipulation helper package -![Workflow](https://github.com/gobeam/stringy/actions/workflows/ci.yml/badge.svg) [![Build][Build-Status-Image]][Build-Status-Url] [![Go Report Card](https://goreportcard.com/badge/github.com/gobeam/stringy?branch=master&kill_cache=1)](https://goreportcard.com/report/github.com/gobeam/Stringy) [![GoDoc][godoc-image]][godoc-url] +![Workflow](https://git.internal/re/stringy/actions/workflows/ci.yml/badge.svg) [![Build][Build-Status-Image]][Build-Status-Url] [![Go Report Card](https://goreportcard.com/badge/git.internal/re/stringy?branch=master&kill_cache=1)](https://goreportcard.com/report/git.internal/re/stringy) [![GoDoc][godoc-image]][godoc-url] [![Coverage Status](https://coveralls.io/repos/github/gobeam/stringy/badge.svg)](https://coveralls.io/github/gobeam/stringy) Convert string to camel case, snake case, kebab case / slugify, custom delimiter, pad string, tease string and many other functionality with help of by Stringy package. You can convert camelcase to snakecase or kebabcase, or snakecase to camelcase and kebabcase and vice versa. This package was inspired from PHP [danielstjules/Stringy](https://github.com/danielstjules/Stringy). @@ -69,7 +69,7 @@ package main import ( "fmt" - "github.com/gobeam/stringy" + "git.internal/re/stringy" ) func main() { @@ -88,13 +88,13 @@ func main() { ## Installation ``` bash -$ go get -u -v github.com/gobeam/stringy +$ go get -u -v git.internal/re/stringy ``` or with dep ``` bash -$ dep ensure -add github.com/gobeam/stringy +$ dep ensure -add git.internal/re/stringy ``` @@ -377,6 +377,6 @@ Released under the MIT License - see `LICENSE.txt` for details. [Build-Status-Url]: https://travis-ci.com/gobeam/stringy [Build-Status-Image]: https://travis-ci.com/gobeam/stringy.svg?branch=master -[godoc-url]: https://pkg.go.dev/github.com/gobeam/stringy?tab=doc -[godoc-image]: https://godoc.org/github.com/gobeam/stringy?status.svg +[godoc-url]: https://pkg.go.dev/git.internal/re/stringy?tab=doc +[godoc-image]: https://godoc.org/git.internal/re/stringy?status.svg diff --git a/example/main.go b/example/main.go index f7bcd14..476310c 100644 --- a/example/main.go +++ b/example/main.go @@ -2,11 +2,11 @@ package main import ( "fmt" - "github.com/gobeam/stringy" + + "git.internal/re/stringy" ) func main() { - strBetween := stringy.New("HelloMyName") fmt.Println(strBetween.Between("hello", "name").ToUpper()) diff --git a/go.mod b/go.mod index e2b1e2c..d1e5312 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module github.com/gobeam/stringy +module git.internal/re/stringy go 1.14 diff --git a/go.sum b/go.sum index 26e9335..e69de29 100644 --- a/go.sum +++ b/go.sum @@ -1,20 +0,0 @@ -github.com/mattn/goveralls v0.0.6 h1:cr8Y0VMo/MnEZBjxNN/vh6G90SZ7IMb6lms1dzMoO+Y= -github.com/mattn/goveralls v0.0.6/go.mod h1:h8b4ow6FxSPMQHF6o2ve3qsclnffZjYTNEKmLesRwqw= -github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20200522201501-cb1345f3a375 h1:SjQ2+AKWgZLc1xej6WSzL+Dfs5Uyd5xcZH1mGC411IA= -golang.org/x/tools v0.0.0-20200522201501-cb1345f3a375/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=