Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 3 months ago
JSON representation

🛺 Golang utility library, With additional functions such as JavaScript/Python! Golang实用程序库。

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!