Skip to content

Commit

Permalink
chore: update and re-generate README
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Sep 14, 2022
1 parent 0edd1cb commit 88afe8e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -128,6 +128,9 @@ ss, err := arrutil.ToStrings([]int{1, 2}) // ss: []string{"1", "2"}
> Package `github.com/gookit/goutil/cflag`
```go
// source at cflag/app.go
func NewApp(fns ...func(app *App)) *App
func NewCmd(name, desc string) *Cmd
// source at cflag/cflag.go
func SetDebug(open bool)
func New(fns ...func(c *CFlags)) *CFlags
Expand Down Expand Up @@ -659,7 +662,7 @@ func ToString(mp map[string]any) string
func ToString2(mp any) string
func FormatIndent(mp any, indent string) string
func Flatten(mp map[string]any) map[string]interface{}
func FlatWithFunc(mp map[string]any, fn FlatFunc)
func FlatWithFunc(mp map[string]any, fn reflects.FlatFunc)
// source at maputil/format.go
func NewFormatter(mp any) *MapFormatter
// source at maputil/get.go
Expand Down Expand Up @@ -765,6 +768,7 @@ func Indirect(v reflect.Value) reflect.Value
func Len(v reflect.Value) int
func SliceSubKind(typ reflect.Type) reflect.Kind
func SetValue(rv reflect.Value, val interface{}) error
func FlatMap(rv reflect.Value, fn FlatFunc)
// source at reflects/value.go
func Wrap(rv reflect.Value) Value
func ValueOf(v interface{}) Value
Expand Down Expand Up @@ -1099,6 +1103,8 @@ func MockEnvValue(key, val string, fn func(nv string))
func MockEnvValues(kvMap map[string]string, fn func())
func MockOsEnvByText(envText string, fn func())
func MockOsEnv(mp map[string]string, fn func())
func ClearOSEnv() { os.Clearenv() }
func RevertOSEnv()
func MockCleanOsEnv(mp map[string]string, fn func())
// source at testutil/httpmock.go
func NewHttpRequest(method, path string, data *MD) *http.Request
Expand Down
8 changes: 7 additions & 1 deletion README.zh-CN.md
Expand Up @@ -127,6 +127,9 @@ ss, err := arrutil.ToStrings([]int{1, 2}) // ss: []string{"1", "2"}
> Package `github.com/gookit/goutil/cflag`
```go
// source at cflag/app.go
func NewApp(fns ...func(app *App)) *App
func NewCmd(name, desc string) *Cmd
// source at cflag/cflag.go
func SetDebug(open bool)
func New(fns ...func(c *CFlags)) *CFlags
Expand Down Expand Up @@ -660,7 +663,7 @@ func ToString(mp map[string]any) string
func ToString2(mp any) string
func FormatIndent(mp any, indent string) string
func Flatten(mp map[string]any) map[string]interface{}
func FlatWithFunc(mp map[string]any, fn FlatFunc)
func FlatWithFunc(mp map[string]any, fn reflects.FlatFunc)
// source at maputil/format.go
func NewFormatter(mp any) *MapFormatter
// source at maputil/get.go
Expand Down Expand Up @@ -766,6 +769,7 @@ func Indirect(v reflect.Value) reflect.Value
func Len(v reflect.Value) int
func SliceSubKind(typ reflect.Type) reflect.Kind
func SetValue(rv reflect.Value, val interface{}) error
func FlatMap(rv reflect.Value, fn FlatFunc)
// source at reflects/value.go
func Wrap(rv reflect.Value) Value
func ValueOf(v interface{}) Value
Expand Down Expand Up @@ -1100,6 +1104,8 @@ func MockEnvValue(key, val string, fn func(nv string))
func MockEnvValues(kvMap map[string]string, fn func())
func MockOsEnvByText(envText string, fn func())
func MockOsEnv(mp map[string]string, fn func())
func ClearOSEnv() { os.Clearenv() }
func RevertOSEnv()
func MockCleanOsEnv(mp map[string]string, fn func())
// source at testutil/httpmock.go
func NewHttpRequest(method, path string, data *MD) *http.Request
Expand Down

0 comments on commit 88afe8e

Please sign in to comment.