Web developer looking to use Go more

blov · · 483 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Go seems very interesting.</p> <p>Currently, I build web sites, web applications and sometimes native apps. I use a bunch of different languages and frameworks includiny PHP, TypeScript (client React and server Node) with Node, C#.NET Core, Elm, Ruby (on Rails), some static site generators written in Ruby and more.</p> <p>Lately, I&#39;ve been reading about Go and would want to start using it more often. What are examples of where Go could have a positive impact on my workflow?</p> <hr/>**评论:**<br/><br/>artpar: <pre><ul> <li>Cron services (non-user facing repetitive tasks)</li> <li>Web services (user facing api&#39;s)</li> </ul></pre>chrislovecnm: <pre><p>Microservices?</p></pre>artpar: <pre><p>Microservices yes. I count them in web services. Its really subjective to draw a line between the two. APIs == services, ... micro/web/cron, choose your word.</p></pre>chrislovecnm: <pre><p>The phase web service has permanently burned a dark hole on my soul. </p></pre>Mastermachetier: <pre><p>What I do is build an api server that handles all the backend functions and data in go. Then you can build a ui or front end on whatever you want to use that utilizes the api</p></pre>artpar: <pre><p>You mean something like this ?</p> <p><a href="https://github.com/daptin/daptin" rel="nofollow">https://github.com/daptin/daptin</a></p></pre>Mastermachetier: <pre><p>Exactly although if you are doing a smaller project or even a big projects . I find it easier to start from standard library and build my own endpoints that expose data in json.</p></pre>KrisMcCstoff: <pre><p>You should check out Todd Mcloud.. he has a YouTube channel and has courses up on udemy etc.. could help you out</p></pre>tinrab: <pre><p>If you&#39;re trying out Go, I&#39;d suggest going through <a href="https://github.com/astaxie/build-web-application-with-golang" rel="nofollow">https://github.com/astaxie/build-web-application-with-golang</a>. Apart from basic syntax, you can find some useful examples and see how amazingly Go solves them.</p></pre>waleswo: <pre><p>Hey, thanks for this link. Touches the important parts on learning how to use Go for your web server and how Go does that for you bts.</p></pre>trycat: <pre><p>I’ve replaced Node with Go, I hate the typed shit but I hate async madness more, and deploying Go on Heroku is kind of crazy but it’s still worth it, IMO</p></pre>chrislovecnm: <pre><p>I love go, but I have not found many projects that are really clean to use for web dev and go. React frontend with a go microservices is probably the cleanest solution.</p> <p>With repeated code for crud and such, generators like jhipster and Ruby on Rails are way ahead of the curve. I have not found anything comparable in go :( </p> <p>Again, I contribute to kops and k8s, so I am a gopher. I love the language.</p> <p>But can someone build us a program like Ruby on Rails or jhipster for go?</p></pre>Phr0ztByte: <pre><p>Why not just HTTP handlers and Gorilla MUX? What do you need from Rails if you want a SPA in front of it? Go is really clean for API&#39;s</p></pre>chrislovecnm: <pre><p>Don&#39;t disagree, but it is a lot of repetitive code that could be generated. Fair? </p></pre>Phr0ztByte: <pre><p>I read like I want to read, didn&#39;t even read you line about generators. Go is verbose. If all you are doing is CRUD though, GORM (orm mapper) is a decent choice.</p></pre>_h4rg_: <pre><p><a href="https://gobuffalo.io" rel="nofollow">https://gobuffalo.io</a> ?</p></pre>bishopknight1977: <pre><p>Agree. Use Buffalo Go. Once you understand the basics of Go you&#39;ll want to create a project. I started developing in go two months ago.</p> <p>Make sure you understand how to set up a workspace.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

483 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传