Skip to content

Commit

Permalink
all: imp HACKING.md, try a new proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ainar-g committed Dec 24, 2020
1 parent 22997df commit 423229e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions HACKING.md
Expand Up @@ -70,6 +70,14 @@ The rules are mostly sorted in the alphabetical order.
func TestType_Method_suffix(t *testing.T) { /**/ }
```

* Name parameters in interface definitions:

```go
type Frobulator interface {
Frobulate(f Foo, b Bar) (r Result, err error)
}
```

* Name the deferred errors (e.g. when closing something) `cerr`.

* No shadowing, since it can often lead to subtle bugs, especially with
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Expand Up @@ -10,7 +10,9 @@ DIST_DIR = dist
GO = go
# TODO(a.garipov): Add more default proxies using pipes after update to
# Go 1.15.
GOPROXY = https://goproxy.io
#
# GOPROXY = https://goproxy.io|https://athens.azurefd.net
GOPROXY = https://athens.azurefd.net
GPG_KEY_PASSPHRASE = not-a-real-password
NPM = npm
NPM_FLAGS = --prefix $(CLIENT_DIR)
Expand Down

0 comments on commit 423229e

Please sign in to comment.