https://github.com/xjh22222228/gosh
🛺 Golang utility library, With additional functions such as JavaScript/Python! Golang实用程序库。
https://github.com/xjh22222228/gosh
golang golang-library golang-utils gosh javascript python utilities
Last synced: over 1 year ago
JSON representation
🛺 Golang utility library, With additional functions such as JavaScript/Python! Golang实用程序库。
- Host: GitHub
- URL: https://github.com/xjh22222228/gosh
- Owner: xjh22222228
- License: mit
- Created: 2018-02-08T11:27:10.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2022-09-25T14:32:57.000Z (over 3 years ago)
- Last Synced: 2024-10-12T19:24:01.609Z (over 1 year ago)
- Topics: golang, golang-library, golang-utils, gosh, javascript, python, utilities
- Language: Go
- Homepage: https://gosh.vercel.app/
- Size: 360 KB
- Stars: 174
- Watchers: 5
- Forks: 35
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Golang utility library, With additional functions such as JavaScript/Python!
## Installation
```bash
go get -d github.com/xjh22222228/gosh
```
## Getting Started
```golang
package main
import (
"fmt"
"time"
"github.com/xjh22222228/gosh/gstr"
"github.com/xjh22222228/gosh/gslice"
"github.com/xjh22222228/gosh/gtime"
)
func main() {
s := gstr.Reverse("Hello World")
fmt.Println(s) // => dlroW olleH
months := []string{"Jan", "March", "April", "June"}
deleteItem := gslice.Splice(&months, 4, 1, "May")
fmt.Println(months, deleteItem) // => [Jan March April June May] []
// Format date
fmt.Println(gtime.Format(time.Now(), "YYYY-MM-DD HH:mm:ss"))
// => 2021-03-12 21:25:37
}
```
More in-depth info can be found in the runtime [documentation](https://gosh.vercel.app/).
## Contributing
We appreciate your help!