Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Just-maple committed Oct 19, 2023
1 parent 97aaaf6 commit 49fabe9
Show file tree
Hide file tree
Showing 37 changed files with 362 additions and 327 deletions.
6 changes: 3 additions & 3 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<link rel="icon" href="/gozz/favicon.ico">
<meta name="description" content="Golang Annotation Analyzer and Template-Programing Kits">

<link rel="preload" href="/gozz/assets/css/0.styles.12437744.css" as="style"><link rel="preload" href="/gozz/assets/js/app.888071f3.js" as="script"><link rel="preload" href="/gozz/assets/js/7.5ee1b1a4.js" as="script"><link rel="prefetch" href="/gozz/assets/js/1.c280a5b2.js"><link rel="prefetch" href="/gozz/assets/js/10.a2c07508.js"><link rel="prefetch" href="/gozz/assets/js/11.895d73e3.js"><link rel="prefetch" href="/gozz/assets/js/12.a7673723.js"><link rel="prefetch" href="/gozz/assets/js/13.574e9b2c.js"><link rel="prefetch" href="/gozz/assets/js/14.45b883cb.js"><link rel="prefetch" href="/gozz/assets/js/15.90f29316.js"><link rel="prefetch" href="/gozz/assets/js/16.63e71ec7.js"><link rel="prefetch" href="/gozz/assets/js/17.7a57509e.js"><link rel="prefetch" href="/gozz/assets/js/18.f3cc7695.js"><link rel="prefetch" href="/gozz/assets/js/19.7ba728ec.js"><link rel="prefetch" href="/gozz/assets/js/2.d3ec5e28.js"><link rel="prefetch" href="/gozz/assets/js/20.c89f8151.js"><link rel="prefetch" href="/gozz/assets/js/21.72b1a31c.js"><link rel="prefetch" href="/gozz/assets/js/22.f244cc02.js"><link rel="prefetch" href="/gozz/assets/js/23.2ff82076.js"><link rel="prefetch" href="/gozz/assets/js/24.4e6cf6f2.js"><link rel="prefetch" href="/gozz/assets/js/25.6a3f36f2.js"><link rel="prefetch" href="/gozz/assets/js/26.d8cb607c.js"><link rel="prefetch" href="/gozz/assets/js/27.cbedc130.js"><link rel="prefetch" href="/gozz/assets/js/28.4639f88c.js"><link rel="prefetch" href="/gozz/assets/js/29.50c1fce2.js"><link rel="prefetch" href="/gozz/assets/js/3.85966d15.js"><link rel="prefetch" href="/gozz/assets/js/30.7381f86c.js"><link rel="prefetch" href="/gozz/assets/js/31.a232f304.js"><link rel="prefetch" href="/gozz/assets/js/32.6b33e0f1.js"><link rel="prefetch" href="/gozz/assets/js/33.99c4f119.js"><link rel="prefetch" href="/gozz/assets/js/34.f46298e4.js"><link rel="prefetch" href="/gozz/assets/js/35.9a0c8661.js"><link rel="prefetch" href="/gozz/assets/js/36.4f4598cc.js"><link rel="prefetch" href="/gozz/assets/js/37.ff19b664.js"><link rel="prefetch" href="/gozz/assets/js/38.2a52e1bf.js"><link rel="prefetch" href="/gozz/assets/js/39.73e81018.js"><link rel="prefetch" href="/gozz/assets/js/4.51108671.js"><link rel="prefetch" href="/gozz/assets/js/40.fd519d1f.js"><link rel="prefetch" href="/gozz/assets/js/41.da7526aa.js"><link rel="prefetch" href="/gozz/assets/js/42.6d665258.js"><link rel="prefetch" href="/gozz/assets/js/43.9472f156.js"><link rel="prefetch" href="/gozz/assets/js/44.880f4fc4.js"><link rel="prefetch" href="/gozz/assets/js/45.3f757e55.js"><link rel="prefetch" href="/gozz/assets/js/46.083c5898.js"><link rel="prefetch" href="/gozz/assets/js/5.633a9138.js"><link rel="prefetch" href="/gozz/assets/js/6.67868328.js"><link rel="prefetch" href="/gozz/assets/js/vendors~docsearch.3d49b2ab.js">
<link rel="preload" href="/gozz/assets/css/0.styles.12437744.css" as="style"><link rel="preload" href="/gozz/assets/js/app.a515c976.js" as="script"><link rel="preload" href="/gozz/assets/js/7.5ee1b1a4.js" as="script"><link rel="prefetch" href="/gozz/assets/js/1.c280a5b2.js"><link rel="prefetch" href="/gozz/assets/js/10.a2c07508.js"><link rel="prefetch" href="/gozz/assets/js/11.895d73e3.js"><link rel="prefetch" href="/gozz/assets/js/12.a7673723.js"><link rel="prefetch" href="/gozz/assets/js/13.574e9b2c.js"><link rel="prefetch" href="/gozz/assets/js/14.45b883cb.js"><link rel="prefetch" href="/gozz/assets/js/15.90f29316.js"><link rel="prefetch" href="/gozz/assets/js/16.63e71ec7.js"><link rel="prefetch" href="/gozz/assets/js/17.7a57509e.js"><link rel="prefetch" href="/gozz/assets/js/18.f3cc7695.js"><link rel="prefetch" href="/gozz/assets/js/19.7ba728ec.js"><link rel="prefetch" href="/gozz/assets/js/2.d3ec5e28.js"><link rel="prefetch" href="/gozz/assets/js/20.c89f8151.js"><link rel="prefetch" href="/gozz/assets/js/21.72b1a31c.js"><link rel="prefetch" href="/gozz/assets/js/22.f244cc02.js"><link rel="prefetch" href="/gozz/assets/js/23.2ff82076.js"><link rel="prefetch" href="/gozz/assets/js/24.c7724534.js"><link rel="prefetch" href="/gozz/assets/js/25.6a3f36f2.js"><link rel="prefetch" href="/gozz/assets/js/26.d8cb607c.js"><link rel="prefetch" href="/gozz/assets/js/27.94f09d1a.js"><link rel="prefetch" href="/gozz/assets/js/28.4639f88c.js"><link rel="prefetch" href="/gozz/assets/js/29.50c1fce2.js"><link rel="prefetch" href="/gozz/assets/js/3.85966d15.js"><link rel="prefetch" href="/gozz/assets/js/30.7381f86c.js"><link rel="prefetch" href="/gozz/assets/js/31.a232f304.js"><link rel="prefetch" href="/gozz/assets/js/32.6b33e0f1.js"><link rel="prefetch" href="/gozz/assets/js/33.99c4f119.js"><link rel="prefetch" href="/gozz/assets/js/34.f46298e4.js"><link rel="prefetch" href="/gozz/assets/js/35.9a0c8661.js"><link rel="prefetch" href="/gozz/assets/js/36.b8147e9e.js"><link rel="prefetch" href="/gozz/assets/js/37.8e3ade51.js"><link rel="prefetch" href="/gozz/assets/js/38.2a52e1bf.js"><link rel="prefetch" href="/gozz/assets/js/39.b1459489.js"><link rel="prefetch" href="/gozz/assets/js/4.51108671.js"><link rel="prefetch" href="/gozz/assets/js/40.fd519d1f.js"><link rel="prefetch" href="/gozz/assets/js/41.da7526aa.js"><link rel="prefetch" href="/gozz/assets/js/42.6d665258.js"><link rel="prefetch" href="/gozz/assets/js/43.9472f156.js"><link rel="prefetch" href="/gozz/assets/js/44.880f4fc4.js"><link rel="prefetch" href="/gozz/assets/js/45.3f757e55.js"><link rel="prefetch" href="/gozz/assets/js/46.083c5898.js"><link rel="prefetch" href="/gozz/assets/js/5.633a9138.js"><link rel="prefetch" href="/gozz/assets/js/6.67868328.js"><link rel="prefetch" href="/gozz/assets/js/vendors~docsearch.3d49b2ab.js">
<link rel="stylesheet" href="/gozz/assets/css/0.styles.12437744.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><div class="theme-default-content"><h1>404</h1> <blockquote>There's nothing here.</blockquote> <a href="/gozz/" class="router-link-active">
<div id="app" data-server-rendered="true"><div class="theme-container"><div class="theme-default-content"><h1>404</h1> <blockquote>That's a Four-Oh-Four.</blockquote> <a href="/gozz/" class="router-link-active">
Take me home.
</a></div></div><div class="global-ui"><!----></div></div>
<script src="/gozz/assets/js/app.888071f3.js" defer></script><script src="/gozz/assets/js/7.5ee1b1a4.js" defer></script>
<script src="/gozz/assets/js/app.a515c976.js" defer></script><script src="/gozz/assets/js/7.5ee1b1a4.js" defer></script>
</body>
</html>
1 change: 0 additions & 1 deletion assets/js/24.4e6cf6f2.js

This file was deleted.

1 change: 1 addition & 0 deletions assets/js/24.c7724534.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/js/27.94f09d1a.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/js/27.cbedc130.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/js/36.4f4598cc.js

This file was deleted.

1 change: 1 addition & 0 deletions assets/js/36.b8147e9e.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/js/37.8e3ade51.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion assets/js/37.ff19b664.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/js/39.73e81018.js

This file was deleted.

1 change: 1 addition & 0 deletions assets/js/39.b1459489.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions assets/js/app.888071f3.js → assets/js/app.a515c976.js

Large diffs are not rendered by default.

8 changes: 3 additions & 5 deletions guide/getting-started.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="icon" href="/gozz/favicon.ico">
<meta name="description" content="Golang Annotation Analyzer and Template-Programing Kits">

<link rel="preload" href="/gozz/assets/css/0.styles.12437744.css" as="style"><link rel="preload" href="/gozz/assets/js/app.888071f3.js" as="script"><link rel="preload" href="/gozz/assets/js/2.d3ec5e28.js" as="script"><link rel="preload" href="/gozz/assets/js/1.c280a5b2.js" as="script"><link rel="preload" href="/gozz/assets/js/24.4e6cf6f2.js" as="script"><link rel="prefetch" href="/gozz/assets/js/10.a2c07508.js"><link rel="prefetch" href="/gozz/assets/js/11.895d73e3.js"><link rel="prefetch" href="/gozz/assets/js/12.a7673723.js"><link rel="prefetch" href="/gozz/assets/js/13.574e9b2c.js"><link rel="prefetch" href="/gozz/assets/js/14.45b883cb.js"><link rel="prefetch" href="/gozz/assets/js/15.90f29316.js"><link rel="prefetch" href="/gozz/assets/js/16.63e71ec7.js"><link rel="prefetch" href="/gozz/assets/js/17.7a57509e.js"><link rel="prefetch" href="/gozz/assets/js/18.f3cc7695.js"><link rel="prefetch" href="/gozz/assets/js/19.7ba728ec.js"><link rel="prefetch" href="/gozz/assets/js/20.c89f8151.js"><link rel="prefetch" href="/gozz/assets/js/21.72b1a31c.js"><link rel="prefetch" href="/gozz/assets/js/22.f244cc02.js"><link rel="prefetch" href="/gozz/assets/js/23.2ff82076.js"><link rel="prefetch" href="/gozz/assets/js/25.6a3f36f2.js"><link rel="prefetch" href="/gozz/assets/js/26.d8cb607c.js"><link rel="prefetch" href="/gozz/assets/js/27.cbedc130.js"><link rel="prefetch" href="/gozz/assets/js/28.4639f88c.js"><link rel="prefetch" href="/gozz/assets/js/29.50c1fce2.js"><link rel="prefetch" href="/gozz/assets/js/3.85966d15.js"><link rel="prefetch" href="/gozz/assets/js/30.7381f86c.js"><link rel="prefetch" href="/gozz/assets/js/31.a232f304.js"><link rel="prefetch" href="/gozz/assets/js/32.6b33e0f1.js"><link rel="prefetch" href="/gozz/assets/js/33.99c4f119.js"><link rel="prefetch" href="/gozz/assets/js/34.f46298e4.js"><link rel="prefetch" href="/gozz/assets/js/35.9a0c8661.js"><link rel="prefetch" href="/gozz/assets/js/36.4f4598cc.js"><link rel="prefetch" href="/gozz/assets/js/37.ff19b664.js"><link rel="prefetch" href="/gozz/assets/js/38.2a52e1bf.js"><link rel="prefetch" href="/gozz/assets/js/39.73e81018.js"><link rel="prefetch" href="/gozz/assets/js/4.51108671.js"><link rel="prefetch" href="/gozz/assets/js/40.fd519d1f.js"><link rel="prefetch" href="/gozz/assets/js/41.da7526aa.js"><link rel="prefetch" href="/gozz/assets/js/42.6d665258.js"><link rel="prefetch" href="/gozz/assets/js/43.9472f156.js"><link rel="prefetch" href="/gozz/assets/js/44.880f4fc4.js"><link rel="prefetch" href="/gozz/assets/js/45.3f757e55.js"><link rel="prefetch" href="/gozz/assets/js/46.083c5898.js"><link rel="prefetch" href="/gozz/assets/js/5.633a9138.js"><link rel="prefetch" href="/gozz/assets/js/6.67868328.js"><link rel="prefetch" href="/gozz/assets/js/7.5ee1b1a4.js"><link rel="prefetch" href="/gozz/assets/js/vendors~docsearch.3d49b2ab.js">
<link rel="preload" href="/gozz/assets/css/0.styles.12437744.css" as="style"><link rel="preload" href="/gozz/assets/js/app.a515c976.js" as="script"><link rel="preload" href="/gozz/assets/js/2.d3ec5e28.js" as="script"><link rel="preload" href="/gozz/assets/js/1.c280a5b2.js" as="script"><link rel="preload" href="/gozz/assets/js/24.c7724534.js" as="script"><link rel="prefetch" href="/gozz/assets/js/10.a2c07508.js"><link rel="prefetch" href="/gozz/assets/js/11.895d73e3.js"><link rel="prefetch" href="/gozz/assets/js/12.a7673723.js"><link rel="prefetch" href="/gozz/assets/js/13.574e9b2c.js"><link rel="prefetch" href="/gozz/assets/js/14.45b883cb.js"><link rel="prefetch" href="/gozz/assets/js/15.90f29316.js"><link rel="prefetch" href="/gozz/assets/js/16.63e71ec7.js"><link rel="prefetch" href="/gozz/assets/js/17.7a57509e.js"><link rel="prefetch" href="/gozz/assets/js/18.f3cc7695.js"><link rel="prefetch" href="/gozz/assets/js/19.7ba728ec.js"><link rel="prefetch" href="/gozz/assets/js/20.c89f8151.js"><link rel="prefetch" href="/gozz/assets/js/21.72b1a31c.js"><link rel="prefetch" href="/gozz/assets/js/22.f244cc02.js"><link rel="prefetch" href="/gozz/assets/js/23.2ff82076.js"><link rel="prefetch" href="/gozz/assets/js/25.6a3f36f2.js"><link rel="prefetch" href="/gozz/assets/js/26.d8cb607c.js"><link rel="prefetch" href="/gozz/assets/js/27.94f09d1a.js"><link rel="prefetch" href="/gozz/assets/js/28.4639f88c.js"><link rel="prefetch" href="/gozz/assets/js/29.50c1fce2.js"><link rel="prefetch" href="/gozz/assets/js/3.85966d15.js"><link rel="prefetch" href="/gozz/assets/js/30.7381f86c.js"><link rel="prefetch" href="/gozz/assets/js/31.a232f304.js"><link rel="prefetch" href="/gozz/assets/js/32.6b33e0f1.js"><link rel="prefetch" href="/gozz/assets/js/33.99c4f119.js"><link rel="prefetch" href="/gozz/assets/js/34.f46298e4.js"><link rel="prefetch" href="/gozz/assets/js/35.9a0c8661.js"><link rel="prefetch" href="/gozz/assets/js/36.b8147e9e.js"><link rel="prefetch" href="/gozz/assets/js/37.8e3ade51.js"><link rel="prefetch" href="/gozz/assets/js/38.2a52e1bf.js"><link rel="prefetch" href="/gozz/assets/js/39.b1459489.js"><link rel="prefetch" href="/gozz/assets/js/4.51108671.js"><link rel="prefetch" href="/gozz/assets/js/40.fd519d1f.js"><link rel="prefetch" href="/gozz/assets/js/41.da7526aa.js"><link rel="prefetch" href="/gozz/assets/js/42.6d665258.js"><link rel="prefetch" href="/gozz/assets/js/43.9472f156.js"><link rel="prefetch" href="/gozz/assets/js/44.880f4fc4.js"><link rel="prefetch" href="/gozz/assets/js/45.3f757e55.js"><link rel="prefetch" href="/gozz/assets/js/46.083c5898.js"><link rel="prefetch" href="/gozz/assets/js/5.633a9138.js"><link rel="prefetch" href="/gozz/assets/js/6.67868328.js"><link rel="prefetch" href="/gozz/assets/js/7.5ee1b1a4.js"><link rel="prefetch" href="/gozz/assets/js/vendors~docsearch.3d49b2ab.js">
<link rel="stylesheet" href="/gozz/assets/css/0.styles.12437744.css">
</head>
<body>
Expand Down Expand Up @@ -170,9 +170,7 @@

<span class="token comment">// +zz:api:/</span>
<span class="token keyword">type</span> API <span class="token keyword">interface</span><span class="token punctuation">{</span><span class="token punctuation">}</span>
</code></pre></div><p>This example would get filepath <code>/go/src/project/types/zzgen.api.go</code></p> <h3 id="custom-template"><a href="#custom-template" class="header-anchor">#</a> Custom Template</h3> <p>For most of the code generation, we would check whether exist file named <code>${filename}.impl</code> in directory.</p> <p>If it exists, it would be used as generate template. Else, a builtin template with this name would be generated.</p> <h3 id="specified-template"><a href="#specified-template" class="header-anchor">#</a> Specified Template</h3> <p>[WIP] Plugins may support optional arguments <code>template=${filename}</code> for specified template filepath:</p> <div class="language-go extra-class"><pre class="language-go"><code><span class="token comment">// +zz:api:/:template=/.gozz/api.tmpl</span>
<span class="token keyword">type</span> API <span class="token keyword">interface</span><span class="token punctuation">{</span><span class="token punctuation">}</span>
</code></pre></div></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/go-zing/gozz-doc/edit/main/docs/guide/getting-started.md" target="_blank" rel="noopener noreferrer">Edit this page</a> <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">10/19/2023, 11:55:14 AM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
</code></pre></div><p>This example would get filepath <code>/go/src/project/types/zzgen.api.go</code></p> <h3 id="custom-template"><a href="#custom-template" class="header-anchor">#</a> Custom Template</h3> <p>For most of the code generation, we would check whether exist file named <code>${filename}.impl</code> in directory.</p> <p>If it exists, it would be used as generate template. Else, a builtin template with this name would be generated.</p></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/go-zing/gozz-doc/edit/main/docs/guide/getting-started.md" target="_blank" rel="noopener noreferrer">Edit this page</a> <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">10/19/2023, 12:49:15 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/gozz/guide/" class="prev router-link-active">
Introduction
Expand All @@ -181,6 +179,6 @@
</a>
</span></p></div> </main></div><div class="global-ui"><!----></div></div>
<script src="/gozz/assets/js/app.888071f3.js" defer></script><script src="/gozz/assets/js/2.d3ec5e28.js" defer></script><script src="/gozz/assets/js/1.c280a5b2.js" defer></script><script src="/gozz/assets/js/24.4e6cf6f2.js" defer></script>
<script src="/gozz/assets/js/app.a515c976.js" defer></script><script src="/gozz/assets/js/2.d3ec5e28.js" defer></script><script src="/gozz/assets/js/1.c280a5b2.js" defer></script><script src="/gozz/assets/js/24.c7724534.js" defer></script>
</body>
</html>
Loading

0 comments on commit 49fabe9

Please sign in to comment.