* Naming
* If this is not some OpenPGP standard I follow rule that `DES` should be
upper case as it is abreviation and `Triple` should be camel-case as it
is normal word hence `TripleDES`
* rename `errors2` -> `errorsPGP`
* long lines
* https://github.com/golang/go/wiki/CodeReviewComments#line-length
* I bit improved long lines based on my folding
* reuse type in definition if possible i.e. `a string, b string, c string` -> `a,b,c string`
* `if long_statetent(); err!=nil {` -> `long_statement;↵ if err!=nil {`
* spaces around operators (e.g. `a + b` -> `a+b`)
* removing empty lines on start and end of scope
* comments
* on all exported functions
* start with function name
* import:
* order in alphabet
* separate native, golang.org/x/ and our libs
62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
hash: 0e0069ce69a4e3bde6233726f21a880347400808a97c2e6f7a173e4d7daea51c
|
|
updated: 2018-09-07T10:20:50.211694+02:00
|
|
imports:
|
|
- name: github.com/Sirupsen/logrus
|
|
version: 3791101e143bf0f32515ac23e831475684f61229
|
|
- name: golang.org/x/crypto
|
|
version: efb430e751f2f00d8d9aedb254fc14ef76954880
|
|
repo: https://github.com/ProtonMail/crypto.git
|
|
subpackages:
|
|
- bitcurves
|
|
- brainpool
|
|
- cast5
|
|
- curve25519
|
|
- ed25519
|
|
- ed25519/internal/edwards25519
|
|
- internal/randutil
|
|
- internal/syscall/unix
|
|
- openpgp
|
|
- openpgp/aes/keywrap
|
|
- openpgp/armor
|
|
- openpgp/clearsign
|
|
- openpgp/ecdh
|
|
- openpgp/elgamal
|
|
- openpgp/errors
|
|
- openpgp/internal/algorithm
|
|
- openpgp/internal/ecc
|
|
- openpgp/internal/encoding
|
|
- openpgp/packet
|
|
- openpgp/s2k
|
|
- rand
|
|
- rsa
|
|
- ssh/terminal
|
|
- name: golang.org/x/sys
|
|
subpackages:
|
|
- unix
|
|
- windows
|
|
- name: golang.org/x/text
|
|
version: 4ae1256249243a4eb350a9a372e126557f2aa346
|
|
subpackages:
|
|
- encoding
|
|
- encoding/charmap
|
|
- encoding/internal
|
|
- encoding/internal/identifier
|
|
- transform
|
|
- name: github.com/ProtonMail/go-pm-mime
|
|
version: dc270ae56b61837aa404c828a14b8ea731167ac0
|
|
repo: https://gitlab.protontech.ch/ProtonMail/go-pm-mime.git
|
|
testImports:
|
|
- name: github.com/davecgh/go-spew
|
|
version: d8f796af33cc11cb798c1aaeb27a4ebc5099927d
|
|
subpackages:
|
|
- spew
|
|
- name: github.com/pmezard/go-difflib
|
|
version: 5d4384ee4fb2527b0a1256a821ebfc92f91efefc
|
|
subpackages:
|
|
- difflib
|
|
- name: github.com/stretchr/testify
|
|
version: 34c6fa2dc70986bccbbffcc6130f6920a924b075
|
|
subpackages:
|
|
- assert
|
|
- name: github.com/golangci/golangci-lint
|
|
version: 901cf25e20f86b7e9dc6f73eaba5afbd0cbdc257
|