Skip to content

Commit

Permalink
修改: README.md
Browse files Browse the repository at this point in the history
	新文件:   example/format.go
  • Loading branch information
ssst0n3 committed Sep 30, 2020
1 parent 4a8f46f commit 891b9bf
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,15 @@
- [x] reflect: some useful reflect gadgets
- [x] slice
- func In(item interface{}, slice interface{}) bool
- [x] python like format

## format
```
import "github.com/ssst0n3/awesome_libs"
func Format() {
awesome_libs.Format("Hello {.name}", awesome_libs.Dict{
"name": "awesome",
})
}
```
9 changes: 9 additions & 0 deletions example/format.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package example

import "github.com/ssst0n3/awesome_libs"

func Format() {
awesome_libs.Format("Hello {.name}", awesome_libs.Dict{
"name": "awesome",
})
}

0 comments on commit 891b9bf

Please sign in to comment.