-
Updated
Jul 4, 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 46,473 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
rclone v1.48.0
- os/arch: linux/amd64
- go version: go1.12.
ncdu shows empty files as:
@ 0.0 B [ ] emptyfile
..and empty folders as:
e 0.0 B [ ] /emptyfolder
Could rclone ncdu get the indicators as well?
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
Dear developers. I write my custom specific web server for work with specific archive files, compression, encryption, etc. And i want to publish my web server under BSD-2-Clause license.
In my project i use Iris and Iris logger as basement.
I'm not going to use the name of your project to promote my project.
Can I publish my project under the BSD-2-Clause license?
Thanks.
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
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
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
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
This is a great book and I've enjoyed following it through almost to the end.
However, if I type / copy the code in the first code block at https://quii.gitbook.io/learn-go-with-tests/go-fundamentals/math#write-the-test-first then run the test, it will give me a
Success: all tests pass.
It looks like the package that is being included already has the correct code. The guide should sure
don't know how to do
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
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,
Describe the bug
After following the instructions for enabling shell completion I still can’t get the completion functionality to work. I’ve tried both the eval
and Homebrew options. I’m on Mac OS 10.15.4 using zsh with Oh My Zsh and gh version 0.6.2.
Steps to reproduce the behavior
- Add the Homebrew completion [snippet](https://do
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