Skip to content
#

golang

go logo

Go is a programming language built to resemble a simplified version of the C programming language. It compiles at the machine level. Go was created at Google in 2007 by Robert Griesemer, Rob Pike, and Ken Thompson.

Here are 45,030 public repositories matching this topic...

biko-the-bird
biko-the-bird commented Jul 7, 2018

The chat tutorial listed for elixir is outdated. It uses a old version of phoenix and could be confusing to new users who would be learning a oudated set of syntax, application structure, commands i.e. mix phoenix.create vs. mix phx.create.

Also it's missing some steps. For one this they never do mix ecto.create without which the postgres database is not initialized so the app doesn't wo

Leo-Mu
Leo-Mu commented May 5, 2019

对于使用云服务的负载均衡器(Azure 或者 Google cloud)以及 CDN 的用户,因为负载均衡器和 CDN 是可以直接接管证书和 TSL 甚至 HTTP/2 、 QUIC 的,所以希望 v2ray 作为客户端使用时也能够支持像浏览器一样自动协商底层传输协议是 HTTP 1.1 还是 HTTP/2 或 QUIC 。相当于在入站协议上提供一个尽量简单、不占资源的 HTTP 类型的底层传输协议,如 #1644 所需求的,再由客户端在出站协议上与负载均衡器自动协商。当然如果入站协议也能够提供一个支持多版本协商的 HTTP 底层传输协议那也再好不过。
以及目前 WebSocket 是直接使用 WebSocket 连接的,与浏览器的 HTTP 协商升级为 ws 的行为有所不同,跟据[谷歌云的表述](https://cloud.google.com/load-balancing/docs/

traefik
medyagh
medyagh commented Jan 4, 2020

followed the docs for has manyhttp://gorm.io/docs/has_many.html for sqlilite

package main

import (
	"fmt"

	"github.com/jinzhu/gorm"
	_ "github.com/mattn/go-sqlite3"
)


type User struct {
	Id          string
	Name        string
	CreditCards []CreditCard `gorm:"FOREIGNKEY:user_id;ASSOCIATION_FOREIGNKEY:id"`
}

type CreditCard struct {
	Id     int
	Number string
	UserID 
mattermost-server
fabio-boldrini
fabio-boldrini commented Feb 17, 2020

Description

I tried to create via REST a Bot without setting the username and I get an "Invalid email" error

Steps:

POST http://localhost:8065/api/v4/bots
{"display_name":"Alfred","description":"CMS Automation"}

And response is:

`{"id":"model.user.is_valid.email.app_error","message":"Invalid email","detailed_error":"","request_id":"4by66j8tcjfpmjn65sjjbrwn1y","status_code":4

abeMedia
abeMedia commented Apr 4, 2020

It's not clear to me how auth/casbin is meant to be used. I had a look at the test cases but it looks like that's just using hard-coded values. Are we meant to wrap this with our own middleware that injects the subject & object and populates the context with the model & policy or is this just meant to serve as an example implementation?

Would be good to have a readme to add a little more cont

dgraph
rahst12
rahst12 commented Jan 8, 2020

Experience Report

I am currently ingesting a large continuous streaming data set. The most recent data is the most important data. The oldest - either by policy or by least importance needs to be aged-off. Today, we use Neo4J Community Edition. We perform a query to find nodes/relationships older than a specific date and then delete them.

Note: Feature requests are judged based on user

micro
str225
str225 commented Apr 21, 2020

Description of the problem or steps to reproduce

I was trying to replace the gcc linting for clang with custom flags by customizing the linter through a custom plugin (mostly to see how it works).
I first tried to use the linter.removeLinter function (that isn't documented in the readme but is in the source code) and it didn't disabled the gcc linting. For disabling the gcc linter one has to

AxlLind
AxlLind commented May 21, 2019

Clicking on a pattern which is unfinished (i.e status = ✘) provides no feedback on the website, nothing happens.

Clicking on the link multiple times appends the category to the URL multiple times. For example clicking on Abstract Factory three times yields the following url:

http://tmrts.com/go-patterns/creational/creational/creational/abstract_factory.md

Lastly, clicking on such an o

garyburd
garyburd commented Jul 31, 2018

Points to cover

  • An application can handle subprotocol negotiation on its own by setting the Sec-Websocket-Protocol response header. The Subprotocols(r *http.Request) []string function is helpful here.
  • Set u.Subprotocols for builtin subprotocol negotiation. Builtin negotiation overrides a subprotocol specified in the response header (it would have been better to return an error, but it
Seanstoppable
Seanstoppable commented May 3, 2019

What problem does this solve?

Configs are prone to error. If we can give people a setup command to ease problems, this would reduce errors.

How do envision it working?

In #408, it was brought up that since every module has a strongly typed config, this means we should be able to annotate the config to generate documentation. It follows that, if we can generate documentation, we

rogpeppe
rogpeppe commented Nov 16, 2015

The documentation does not make it clear whether
paths of the form:

/prefix:foo

are allowed. These are currently supported by httprouter,
but don't seem quite in the spirit of its simple specification
(you can't have statically defined suffixes for a path element,
so why should you be allowed a statically defined prefix?)

This form:

/prefix*foo

is similarly not specified but i

bug
treemanzhou
treemanzhou commented Jul 15, 2018

2018/07/14 00:26:24 main.go:279: [WARN] ncpu = 8 -> 10, usage = [0.412, 0.392, 0.377, 0.359, 0.387, 0.505, 0.519, 0.559, 0.617, 0.705]
2018/07/14 00:27:04 main.go:279: [WARN] ncpu = 10 -> 9, usage = [0.074, 0.068, 0.090, 0.079, 0.218, 0.177, 0.097, 0.117, 0.193, 0.195]
2018/07/14 00:27:14 main.go:279: [WARN] ncpu = 9 -> 8, usage = [0.176, 0.158, 0.218, 0.201, 0.132, 0.185, 0.162, 0.117, 0.151, 0

pavel-shpilev
pavel-shpilev commented Mar 5, 2019

Now, this could be a controversial one, because of the added ambiguity.

There is no way to indicate that an entry has been sampled because of the very definition of sampling. But what can be done is a boolean field added to the n-th (where n = first) and every subsequent entry within one tick. Let's call it sampling_threshold_reached for the lack of better name.

This could be helpf

cjbrowne
cjbrowne commented Nov 9, 2019

Describe the bug
Using application.NewWindow to create a secondary window, it's not possible to re-use that window after it has been closed. If the user presses the X button, the window doesn't respond to Show() calls any more.

To Reproduce

  1. Create a main window
  2. Create a secondary window
  3. Close the secondary window
  4. Attempt to re-show the secondary window.

Example co

Created by Robert Griesemer, Rob Pike, Ken Thompson

Released November 10, 2009

Repository
golang/go
Website
golang.org
Wikipedia
Wikipedia

Related Topics

c language
You can’t perform that action at this time.