<p>Started this project about a week ago and it's starting to take shape a bit :) It's a simple framework for Go that implements webpack with hot module replacement and some other useful things for rapid prototyping and SPAs.</p>
<p>Feel free to criticise, contribute, or whatever.</p>
<p><a href="https://github.com/huoy/moon">https://github.com/huoy/moon</a></p>
<hr/>**评论:**<br/><br/>aagee: <pre><p>Started a week ago, and already 1.1.0?</p></pre>ehustle: <pre><p>I wasn't planning to use the last digit ;D It's just a convention for npm packages to have it, even though this isn't actually an npm package. Maybe at some point I'll need it!</p></pre>Brasilikum: <pre><p>Why did you use both go and node.js. Coming from Node.js I see the benefits of it for rapid prototyping, but an important thing I came to love about go is that it compiles to single static binaries. I would not want to install npm on my production system.
I see the need for a rapid prototyping tool in go, but wouldn't it be possible in go only? Which was your motivation to mix the two? </p></pre>calebdoxsey: <pre><p>He's using webpack which requires node. Once bundled I don't think you need the node dependency anymore. You could build the binary, package it with all the static assets and bundled files and then deploy that.</p>
<p>There are a lot of tools for frontend development built in node. Although it'd be nice if those tools were written in Go, I don't think that's going to happen anytime soon.</p></pre>ehustle: <pre><p>This is correct.</p></pre>koffiezet: <pre><blockquote>
<p>I don't think that's going to happen anytime soon.</p>
</blockquote>
<p>I don't think that's ever going to happen tbh. These tools are written by front-end devs to solve their own problems, and Node finally offers them a way of writing these tools in the language they also use for all their other stuff. I'm not exactly a Javascript/Node fan, but I can see Node's use in this case.</p></pre>andrewjsledge: <pre><p>Maybe identify in your post that this is a hybrid stack.</p></pre>google_you: <pre><p>node.js ftw</p></pre>vibhavp01: <pre><p>???</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传