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 40,605 public repositories matching this topic...

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/

ederuiter
ederuiter commented Jan 7, 2020

Description

When working with the API I came across a number of documentation inconsistencies:

  • all API calls for users refer to {username} .. however looking at the fields of a user there is no username field, only login. More co
mattermost-server
mattermod
mattermod commented Jan 22, 2020

We are starting to migrate the mattermost-webapp over to TypeScript to facilitate better code quality. This Help Wanted issue is to modify all files in components/create*team/components/team*url (not sub-directories included) and associated test files.

Below is a checklist of items you should be doing to migrate:

  • < ] Rename the files to their associated TypeScript extensions (ie. js to `
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 
sailujanu
sailujanu commented Dec 26, 2017

Hi,

We are currently using go-kit in our project and it is great so far. We wanted to generate API documentation and I have gone through goswagger https://github.com/go-swagger/go-swagger and according to this it need to add annotations in order to generate spec but to add annotation it should be at controller level. go-kit follows gPRC and not sure how to add annotations. Does anyone know how

erbridge
erbridge commented May 3, 2015

We should try to close and reopen issues in the repos they effect, rather than here.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/12976812-open-new-issues-in-the-relevant-repos?utm_campaign=plugin&utm_content=tracker%2F282001&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountyso
ppggff
ppggff commented May 18, 2018

When casting to a pointer with a package type, delve give error, such as:

(dlv) p *(*aaa/bbb/ccc.DDD)(0x134234234)
Command failed: no type entry found, use 'types' for a list of valid types

But I got this expr from a result of printing another map, so the type must be right.

After reading the source file about type casting in delve,
I found in delve/pkg/proc/types.go:

dgraph
animesh2049
animesh2049 commented Sep 11, 2019

query having eq function in condition, gives weird error message.
Example query:

upsert {
  query {
    me(func: eq(name, "Animesh")) {
      u as uid
      n as name
    }
  }

  mutation @if(eq(n, "Animesh")) {
    set {
      uid(u) <name> "Ashish" .
    }
  }
}

Example error:

details = "while parsing query: "{\n          me(func: eq(name, \"Animesh\")) {\n 
cedl38
cedl38 commented May 4, 2019

Description of the problem or steps to reproduce

  • Press Shift+Right Click for selecting text and keep cursor on the initial position.
    In this case lines number are selected with the content of the file.
  • Press Middle Click to past selected text : the lines number are also pasted with the text

Specifications

Commit tag:1.4.1
OS:Debian buster
Terminal:Terminator

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

jjuraszek
jjuraszek commented Mar 19, 2019

right now according to doc you have to read from connection to fire SetPongHandler event. But if the websocket is used for push only it won't be fired. Solution is to use:

go ws.NextReader()

But the doc is not very straight forward about that. In my opinion there should be description of how to setup heartbeat in case of push only usage. Let me know if you need help with th

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

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.