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

Suggestions/strategy for messaging and/or user-group systems for a Go app

<p>I’m looking for suggestions/strategy on messaging systems and/or user-group-management systems for my app.</p> <p>The app is all Go in the back-end, with MYSQL db and an API serving JSON to clients (website, Android, iPhone). Hosted on Google Cloud using App Engine. Primary features are event posting+rsvp’ing with event commen...阅读全文

Assist an amateur.

<p>Hello, I have what I hope is a quick question. I&#39;m using a small bit of code that receives a feed from an API of a list of items and then displays specific items I&#39;m interested in based on a few variables.</p> <p>My issue I believe is pretty simple. Say you have an item type that is &#34;Apple&#34;. ...阅读全文

资源 2017-03-22 19:00:38 agolangf

How damaging for the Golang community is docker becoming pay-to-use ? Will this become a trend ?

<p>First of all, I understand that the &#34;old docker&#34; is still alive in the form of moby. However, the &#34;owners&#34; of docker have chosen to use the brand of docker for a closed &#34;EE&#34; product.</p> <p>This is obviously bad because it splits the community. People will fork away from Moby bec...阅读全文

Go hidden gems thread

<p>Do you know any high quality Go project or package that is basically unknown? Sometimes the author don&#39;t bother to post it on Go channels like <a href="/r/golang">/r/golang</a>. Please post it here, other gophers can find it useful.</p> <hr/>**评论:**<br/><br/>mrfrobozz: <pre><p>...阅读全文

资源 2017-11-18 15:00:11 blov

Was hoping to get some critique on my first go library!

<p>Hey all. I&#39;m a hobbyist programmer at best and getting back into programming I decided to tackle Go! I am having a blast with it so far and I&#39;m currently working on sort of a managed job queue. Where you can set up jobs, send them to the queue, and the queue will fire up a MaxActiveJobs number of jobs and wait for them to f...阅读全文

json parsing help

<p>Hi <a href="/r/golang" rel="nofollow">r/golang</a>,</p> <p>So this probably gets asked a ton and I am still getting my sea legs here in the land of go. As a prolific googler I try to find everything first and read several posts first and have learned quite a bit already. I am not sure if Marshaling ...阅读全文

资源 2017-03-16 02:00:14 xuanbao

Any drawbacks when type converting between structs with the same fields but different struct tags?

<p>So I have two big structs which after embedding many other structs they end up having the same fields but with different struct tags.</p> <p>Is it safe to do a type conversion between them? Any drawbacks?</p> <p>Example: <a href="https://play.golang.org/p/QTtTnmchpU8">https://play.golang.org/p/QTtTnm...阅读全文

资源 2018-02-05 20:30:13 xuanbao

After reading about go list I made a small powershell script that will list all dependencies of a project, but also query the Github API for license information for all github imported packages

<p><a href="https://gist.github.com/elvarb/c680e52b83f069cc5e4cd2e8033999d3">https://gist.github.com/elvarb/c680e52b83f069cc5e4cd2e8033999d3</a></p> <p>Because the API has a rate limit it is better to generate an API key for this.</p> <p><a href="https://github.com/settings/tokens">h...阅读全文

资源 2017-11-08 06:00:28 blov

[Question] What is your go to environmet/setup when using Go?

<p>Its been 2+ years since the last environment post that I could find. Any new additions to the Go world that we should consider adding to our everyday workflows? </p> <p>Im fairly newish to Go, mainly just learning the syntax and what not, but as of right now I just use Atom + a couple of ITerm windows. Curious to see what else...阅读全文

what is the best design pattern for fine-grained authorization with golang?

<p>Hi everybody, I am trying to develop a IT device info management system for a large company which has lots of branch offices in different locations. Each branch office has some IT devices whose information like purchase date, price, current user should be managed via this system. This system should has a supper user which can manage every...阅读全文

资源 2017-05-06 10:02:31 polaris

在 Go 语言项目中使用 Travis CI

文链接:在 Go 语言项目中使用 Travis CI Travis CI 是一种免费的持续集成服务,而 持续集成(CI, Continuous integration) 是一种软件工程流程,概括来讲就是多提交小的 Commit 来更快的发现软件的 Bug,从而提高软件质量。 本文会详细介绍如何在 Go 语言项目中使用 Travis CI。 准备工作 GitHub 账号:用于保存项目。 Travis CI 账号:点击右上角的 Sign in with GitHub 即可通过 GitHub 创建关联账号。 示例项目 hello,它包含三个文件: hello.go: package hello func Hello() string { return "Hello, World!" } hello...阅读全文

博文 2020-05-31 23:32:48 line

Object equality

<p>I&#39;m trying to implement a simple <code>assertEquals</code> function. I&#39;m at the point when I don&#39;t understand how object equality works. Please have a look at this example (simplified for brevity): <a href="https://play.golang.org/p/bFv6KJcxcr8" rel="nofollow">https://play.golang.or...阅读全文

资源 2018-03-04 07:30:10 blov