-
Updated
May 23, 2020 - Go
golang

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...
对于使用云服务的负载均衡器(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/
Do you want to request a feature or report a bug?
Documentation improvement
In digestAuth documentation, Kubernetes section does not contain any useful example explaining how to put credentials into a file. The given example is same as users(using base
- Gitea version (or commit ref):
Gitea version 1.11.4 built with GNU Make 4.1, go1.13.9 : bindata, sqlite, sqlite_unlock_notify
- Git version: 2.20.1
- Operating system: Debian
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No
- Not relevant
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
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
Move all Dockerfile samples to non-root user
Expected Behaviour
As an OpenFaaS end-user, I want to run all samples on my OpenFaaS cluster, even with the new non-root feature enabled.
Current Behaviour
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
What is a common approach when building API Server from swagger spec file (usually swagger.yml).
Command swagger generate server...
generates a bunch of .go files. Where those generated .go files should be placed.
Is a good approach to put them to /pkg/api/ ?
src directory
-
Updated
Dec 30, 2019
Go 1.14 uses a new system to preempt goroutines non-cooperatively by sending a SIGURG signal to its own threads. This necessitates increased rigour in signal routing. We should verify that this doesn't expose latent bugs in the freebsd native backend before Go 1.14/Delve 1.4.0 is released.
cc @rayrapetyan
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
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
There is a bad link on the master branch readme (https://github.com/golang/dep/blob/master/README.md) in the section for Windows users looking to download dep.
The link is bolded in this sentence below and currently points to https://go.equinox.io/github.com/golang/dep/cmd/dep which returns a 404 code
- On Windows, you can download a tarball from go.equinox.io.
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
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
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
Gitea integration
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
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
In this section (which needs a little grammar tidying as well), the code .
command is not enabled by default, so doesn't immediately work as a check that Visual Studio Code is installed correctly: https://quii.gitbook.io/learn-go-with-tests/go-fundamentals/install-go#go-editor
Visual Studio includes instructions for enabling this wonderful shortcut here: https://code.visualstudio.com/docs/set
don't know how to do
Hi,
It seems like the HTTP Assert package does not allow me to specify a body to pass in a POST request for example. Looking at the HTTPBody()
function, the body argument is set to nil
:
req, err := http.NewRequest(method, url+"?"+values.Encode(), nil)
Is this by design, or am I looking at a missing feature?
Cheers,
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
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
- Create a main window
- Create a secondary window
- Close the secondary window
- 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
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