curl --location --request POST '127.0.0.1:8080/ping'
curl --location --request POST '127.0.0.1:8080/gen' \
--header 'Content-Type: application/json' \
--data-raw '{
"template": "your name is {{ .name }}, age is {{ .age }}",
"data": "{\"name\":\"coco\",\"age\":18}"
}'
MenciusCheng/go-text-template
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
通用文本模版生成器
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published