https://github.com/floscodes/golang-tools
Some useful golang-tools.
https://github.com/floscodes/golang-tools
golang golang-package golang-tools
Last synced: about 1 month ago
JSON representation
Some useful golang-tools.
- Host: GitHub
- URL: https://github.com/floscodes/golang-tools
- Owner: floscodes
- License: mit
- Created: 2021-06-14T19:19:35.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-16T12:58:44.000Z (almost 5 years ago)
- Last Synced: 2026-01-02T12:28:38.150Z (6 months ago)
- Topics: golang, golang-package, golang-tools
- Language: Go
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
```
func CopyDir(src string, dest string) error
```
This function copies a directory from src(path to source folder) to a destination(dest).
```
func CheckIsSpace(s string) bool
```
This function checks if a string only consists of spaces. If so, the function returns true.
```
func ThousandsSeparate(N interface{}, lang string) (string, error)
```
This function adds thousands-separators to a number N. This function takes two arguments: the number itself and the language-code of the language you want to use. It will return a string containing the number with thousands separators in the language you set with the second argument. For now the package supports English and German. More languages will be added in the future.