Go语言中文网 为您找到相关结果 437

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...阅读全文

资源 2017-04-23 05:00:08 agolangf

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&#39;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,利用...阅读全文

What's the most idiomatic API example for an enterprise golang server?

<p>&#34;Most idiomatic&#34; is subjective--and that&#39;s fine. What do you think is the most idiomatic golang server example on the internet? I&#39;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....阅读全文

从 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...阅读全文

博文 2019-07-24 17:33:47 banlyst

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&#39;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...阅读全文

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...阅读全文