Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

21
zek Normal file
View File

@@ -0,0 +1,21 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# zek
> Generate a Go struct from XML.
> More information: <https://github.com/miku/zek>.
- Generate a Go struct from a given XML from `stdin` and display output on `stdout`:
`cat {{path/to/input.xml}} | zek`
- Generate a Go struct from a given XML from `stdin` and send output to a file:
`curl -s {{https://url/to/xml}} | zek -o {{path/to/output.go}}`
- Generate an example Go program from a given XML from `stdin` and send output to a file:
`cat {{path/to/input.xml}} | zek -p -o {{path/to/output.go}}`