Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1
moul/mdcodec
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Transform Go structures into readable Markdown, tailored for both human and machine consumption.
- Hierarchical struct representation using
#for primary and nested lists for secondary structures. - Uses reflection.
- Introduce concise single-line encodings.
- Introduce markdown table support (Seemoul/mdtable).
- Integrate native support within Amino.
- Examples: develop markdown-centric APIs in Gnoland contracts. And Go clients.
typePersonstruct {Namestring`md:"title"`AgeintAddressstruct {CitystringStatestring }}p:=Person{}p.Name="John Doe"p.Age=30p.Address.City="Sprintfield"p.Address.State="IL"md:=mdcodec.Marshal(p)fmt.Println(md)// Output:// # John Doe (Person)//// - **Age**: 30// - **Address**:// - **City**: Springfield// - **State**: IL
varpPersonerr:=mdcodec.Unmarshal(md,&p)
go get moul.io/mdcodecAbout
convert Go structures to and from readable Markdown (codec).
Topics
Resources
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.