Skip to content
#

Go

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 32,318 public repositories matching this topic...

nikhita
nikhita commented Mar 3, 2021

Working on this issue will teach you about:

  • codebase structure for APIs and testing scripts
  • how API types are written for various k8s objects like deployments, pods, etc
  • the hack/verify-* script pattern that's consistently used across k8s

Background

External API types are defined in types.go files in:

tomasz1986
tomasz1986 commented Nov 12, 2020

Right now, Syncthing seems to always use LF for line endings in config.xml and .stignore. This is a problem in Windows when trying to edit those using the built-in Notepad, which until very recently had no support for other line endings than CRLF. Support for them has only been added in the very recent versions of Windows 10.

The problem is that when opening those files in Notepad under old

caddy
takerukoushirou
takerukoushirou commented Jan 29, 2021

Currently the install_trust option for CAs from the pki module can only be configured via JSON/API.

Setting TLS to internal with option on_demand is easily possible with a Caddyfile and allows for a quick and simple internal setup. Trust store installation on the machine itself is not necessary and only leads to startup errors being logged from both sudo and caddy.

Therefore it w

vercas
vercas commented Feb 26, 2021

What is your current rclone version (output from rclone version)?

Running latest stable and a couple of betas on various machines.

What problem are you are trying to solve?

I've got a systemd unit that starts rclone rcd.
I've got other systemd units that depend on the first one, which use rclone rc mount/mount in order to mount various remotes.

Right now I have to

flycash
flycash commented Feb 10, 2021

Now, if we want to output response, we have to do:

c.Data["json"]
c.ServeJSON()

In fact, we could provide some simple APIs.

I propose adding several new function to web.controller.

func (c *Controller) JSONResp(data interface{}) error {
    j := json.Marshal
 // ... 
}

func (c *Controller) XmlResp(data interface{}) error {

}

func (c *Controller) ProtobufRe

Created by Robert Griesemer, Rob Pike, Ken Thompson

Released November 10, 2009

Repository
golang/go
Website
golang.org
Wikipedia
Wikipedia

Related Topics

c language