Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/petarkirov/type-version
https://github.com/petarkirov/type-version
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/petarkirov/type-version
- Owner: PetarKirov
- Created: 2016-10-24T01:08:15.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2016-10-25T15:33:37.000Z (about 8 years ago)
- Last Synced: 2024-12-17T04:52:30.711Z (21 days ago)
- Language: D
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sample output for:
```D
struct Color1 { union { uint value; struct { ubyte r, g, b, a; } } }
struct Color2 { union { float[3] atIndex; struct { float r, g, b; } } }
struct Color3 { union U1 { uint value; struct { ubyte r, g, b, a; } } U1 u; }
struct Color4 { union U2 { float[3] atIndex; struct { float r, g, b; } } U2 u; }
struct Point { float x, y, z; }
struct Triangle { Point a, b, c; }
class Model
{
Triangle[] mesh;
Color1[10] palette;
Color2[10] palette2;
Color3[10] palette3;
Color4[10] palette4;
}auto info = AggregateInfo!Model.init;
string s = aggregateInfoToJsonString!info;
```can be found here: http://codebeautify.org/jsonviewer/cb8a3a7f