Skip to content

Commit

Permalink
📝 doc: update and re-generate README docs
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Oct 13, 2023
1 parent be917ac commit a279f66
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 2 deletions.
13 changes: 12 additions & 1 deletion README.md
Expand Up @@ -86,6 +86,16 @@ i64Val = goutil.Int64("-2") // -2
u64Val = goutil.Uint("2") // 2
```

### Dump go variable

```go
dump.Print(somevar, somevar2, ...)
```

**dump nested struct**

![preview-nested-struct](dump/_examples/preview-nested-struct.png)

## Packages

### Array and Slice
Expand Down Expand Up @@ -457,9 +467,10 @@ func B64DecodeBytes(str []byte) []byte
```go
// source at envutil/envutil.go
func VarReplace(s string) string
func ParseOrErr(val string) (string, error)
func ParseValue(val string) string
func VarParse(val string) string
func ParseEnvValue(val string) string
func ParseValue(val string) (newVal string)
func SetEnvMap(mp map[string]string)
func SetEnvs(kvPairs ...string)
func UnsetEnvs(keys ...string)
Expand Down
13 changes: 12 additions & 1 deletion README.zh-CN.md
Expand Up @@ -85,6 +85,16 @@ i64Val = goutil.Int64("-2") // -2
u64Val = goutil.Uint("2") // 2
```

### Dump go variable

```go
dump.Print(somevar, somevar2, ...)
```

**dump nested struct**

![preview-nested-struct](dump/_examples/preview-nested-struct.png)

## Packages

### Array and Slice
Expand Down Expand Up @@ -456,9 +466,10 @@ func B64DecodeBytes(str []byte) []byte
```go
// source at envutil/envutil.go
func VarReplace(s string) string
func ParseOrErr(val string) (string, error)
func ParseValue(val string) string
func VarParse(val string) string
func ParseEnvValue(val string) string
func ParseValue(val string) (newVal string)
func SetEnvMap(mp map[string]string)
func SetEnvs(kvPairs ...string)
func UnsetEnvs(keys ...string)
Expand Down
10 changes: 10 additions & 0 deletions internal/template/README.md.tpl
Expand Up @@ -86,6 +86,16 @@ i64Val = goutil.Int64("-2") // -2
u64Val = goutil.Uint("2") // 2
```

### Dump go variable

```go
dump.Print(somevar, somevar2, ...)
```

**dump nested struct**

![preview-nested-struct](dump/_examples/preview-nested-struct.png)

## Packages
{{pgkFuncs}}
## Code Check & Testing
Expand Down
10 changes: 10 additions & 0 deletions internal/template/README.zh-CN.md.tpl
Expand Up @@ -85,6 +85,16 @@ i64Val = goutil.Int64("-2") // -2
u64Val = goutil.Uint("2") // 2
```

### Dump go variable

```go
dump.Print(somevar, somevar2, ...)
```

**dump nested struct**

![preview-nested-struct](dump/_examples/preview-nested-struct.png)

## Packages
{{pgkFuncs}}
## Code Check & Testing
Expand Down

0 comments on commit a279f66

Please sign in to comment.