Thoughts on golang for network operations?
<p>So i posted <a href="https://www.reddit.com/r/networking/comments/6aumf0/thoughts_on_golang_for_network_ops/">this thread</a> in <a href="/r/networking">/r/networking</a>. </p> <p>I started to look at golang a few weeks ago after running into a NANOG talk (big network engineering confere...阅读全文
Books for Go
<p>Hello Gophers! I am an <strong>absolute beginner at programming</strong> and I was wondering if this community could suggest some books for me. I need intermediate level, advanced level, and possibly a web application book for go. I already have a beginner book, Introducing Go but if there is a better alternative I would be gla...阅读全文
My first Go program -- Any constructive criticism?
<p><a href="https://github.com/cascwo/go-garlic" rel="nofollow">https://github.com/cascwo/go-garlic</a></p> <p>Some of you may have heard about <a href="https://garlicoin.io/" rel="nofollow">garlicoin</a>, a new memecoin launched a few days ago. Two of the most popular walle...阅读全文
What is your Go dev environment like, and are you most doing with Go?
<p>Hi, this topic is simple, I'm learning Go and I would like to know, how you guys are structuring your projects and where do you place them on your system, do you add a GOPATH for each project?</p> <p>The other question is, what are you developing with Go?</p> <hr/>**评论:**<br/><br/>sambull: <p...阅读全文
Recommendations for learning Go through projects.
<p>I have 2-3 years experience in Python and would like to pick up the Go lang. I do not have much knowledge about pointers and concurrency. I have completed the Tour of Go and didn't face many difficulties until Maps. How do I learn more about the internals of Go while building some projects? What would be some good resources for a p...阅读全文
Hyperledger fabri 部署网络(单机环境)
title: Hyperledger fabri 部署网络(单机环境) tags: Hyperledger, fabric ,区块链 安装预置环境 下载项目 首先我们需要配置好Hyperledger Fabric开发环境,然后下载并安装Hyperledger Fabric Samples。你会注意到fabric-samples文件夹中包含了许多示例。我们将使用first-network这个例子。 你如果你不知道环境配置和Samlpes的下载安装,可以看我之前的文章: https://blog.csdn.net/yang731227/article/details/83868333 使用脚本自动部署 Hyperledger Fabric Samples提供一个完全注释的脚本byfn.sh,利用...阅读全文
Cli flag hierarchy and how to deal with it in code.
<p>I believe the title is self explanatory but I'll elaborate. The best description I can give is using an example ; so let me use the Linux "find" command. For basic searches by name I can simply use - "find . -name "*mp4" ". However, there are numerous other flags I can optionally incl...阅读全文
Plis an application to create an run CLI tools
<p>Hi, I created an application that is used to creating an run cli tools to automate tasks, generate code and other tools to make my project workflow faster.</p> <p><a href="https://github.com/kujtimiihoxha/plis" rel="nofollow">https://github.com/kujtimiihoxha/plis</a></p> <p>This applica...阅读全文
Is including assets (with a tool like go-bindata) an anti-pattern?
<p>I'm developing a web application and thought it would be a good idea to use a tool like go-bindata to include the assets in the binary. Now I've come to re-evaluate that decision: is this a good idea or am I over-complicating things? What do you think?</p> <hr/>**评论:**<br/><br/>ahacker16: <pre>...阅读全文
Data Entry web application using GoLang
<p>Hi </p> <p>I am planning to develop data entry web application which provides a consistent web interface to its users. Previosuly I have developed it in windows as a desktop application and now I want to convert it into a web application. I do have understanding of writing REST API, backend development in GoLang. </p> &...阅读全文
Simple authentication solution?
<p>I am trying to build my first web app in go, after ditching NodeJS. With node, there are tons of frameworks and tutorials for passport, so it was quite easy to get it running, but I am having trouble doing the same thing in go.</p> <p>I need a basic email/password authentication system, and so far I've found <a href...阅读全文
What's the most idiomatic API example for an enterprise golang server?
<p>"Most idiomatic" is subjective--and that's fine. What do you think is the most idiomatic golang server example on the internet? I'm wanting to follow idiomatic patterns for the cli (spf13/cobra ?), for logging (logrus ?), for routing (net/http ?), middleware (std lib ?), for dockerizing (from scratch ?) etc....阅读全文
Best books or general resources for learning Go?
<p>Looking for your favorite Go book or resource for learning Go</p> <hr/>**评论:**<br/><br/>acdenisSK: <pre><p>Definitely <a href="https://tour.golang.org" rel="nofollow">the tour</a> and <a href="https://golang.org/doc/effective_go.html" rel="nofollow">Effec...阅读全文
从 golang flag 迁移到 cmdr
基于 cmdr v1.0.306 - Migrating from flag 采用一个新的命令行解释器框架,最痛苦地莫过于编写数据结构或者流式定义了。我们首先回顾一下 cmdr 和其它大多数三方增强命令行解释器都支持的最典型的两种命令行界面定义方式,然后再来研究一下 cmdr 新增的最平滑的迁移方案。 典型的方式 通过结构数据体定义 有的增强工具(例如 cobra,viper)采用结构体数据定义方式来完成界面指定,如同 cmdr 的这样: rootCmd = &cmdr.RootCommand{ Command: cmdr.Command{ BaseOpt: cmdr.BaseOpt{ Name: appName, Description: desc, LongDescription: lo...阅读全文
Is it possible to bundle other executables, C libraries, SQLite databases, etc with a Golang binary?
<p>One of the things that appeals to me about Go is the ability to ship a single self-reliant binary, sparing my users a lot of hassle and avoiding a lot of minor problems.</p> <p>Right now I'm writing a tool that relies on ffmpeg (which is written in C and assembly) to analyse media files and extract frames or samples fr...阅读全文
Refactoring: How to change a struct field's type?
<p>Hi there,</p> <p>given there's a struct with an ID field of type int. Now I want to change the type to become UUID for example. This struct is already used in many different files throughout my entire project. What CLI tools, editor plugins or IDEs could help me refactor this? I know there is <code>gorename</c...阅读全文
Is Golang at all useful for writing packages for the linux ecosystem? i.e is dealing with cgo going to be alright, or is it completely the wrong tool for the job?
<p>i have recently hard switched to using arch linux full time on all my systems and not just servers, and felt like contributing and making applications or things to extend functionality within the linux ecosystem, i really am not keen to go back to c/c++ programming as go is so much more enjoyable to code in for me.</p> <p>I ha...阅读全文
[Beginner][Feedback] This path tracer is my first Go program. How would you improve it?
<p>I'm learning Go by writing a <a href="https://github.com/hunterloftis/pbr">physically-based path-tracing renderer</a>. This is the first thing I've written in the language, and I'm learning along the way, so I'd appreciate any feedback more experienced gophers have.</p> <p>Ch...阅读全文
Four Parter Blog Post about Building Furnace | AWS CloudFormation and CodeDeploy management tool
<p>Hey all. </p> <p>I wrote a thing describing my journey on building <a href="https://github.com/Skarlso/go-furnace">Furnace</a>, an application lifecycle management CLI tool with AWS CloudFormation + CodeDeploy.</p> <p>I wrote down all my experiences on working with the AWS SDK and unit testin...阅读全文