Skip to content

Commit

Permalink
docs: polishing for read_all to support remote and compressions
Browse files Browse the repository at this point in the history
  • Loading branch information
linux-china committed Mar 21, 2024
1 parent 58686ea commit f2fa45f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion info/stdlib.md
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,9 @@ Algorithms:
- jwt: `jwt("HS256","your-secret-key", arr)`. algorithm: `HS256`, `HS384`, `HS512`.
- dejwt: `dejwt("your-secret-key", token)`.
-

encrypt: `encrypt("aes-128-cbc", "Secret Text", "your_pass_key")`, `encrypt("aes-256-gcm", "Secret Text", "your_pass_key","iv")`

- encrypt: `decrypt("aes-128-cbc", "7b9c07a4903c9768ceeeb922bcb33448", "your_pass_key")`

Explain for `encrypt` and `decrypt`:
Expand Down Expand Up @@ -626,9 +628,12 @@ date/time array:

### File

- read file into text: `read_all(file_path)`
- read file into text: `read_all(file_path)`, `read_all("https://example.com/text.gz")`
- write text info file: `write_all(file_path, text)` Replace if file exits.

**Tips**: `read_all` function uses [OneIO](github.com/bgpkit/oneio), and remote(https or ftp) and compressions(
gz,bz,lz,xz) are supported.

### getline

Please visit: https://www.gnu.org/software/gawk/manual/html_node/Getline.html
Expand Down

0 comments on commit f2fa45f

Please sign in to comment.