48 Commits

Author SHA1 Message Date
Joe Turki
0397f2187b Upgrade golangci-lint, more linters
Introduces new linters, upgrade golangci-lint to version (v1.63.4)
2025-01-18 10:57:33 -06:00
Steffen Vogel
ab3e9f2f89 Make package REUSE compliant 2023-04-18 13:19:15 +02:00
Steffen Vogel
7c533756a6 Harmonize nolint directives 2023-04-12 10:22:35 +02:00
Steffen Vogel
d913b60c89 Make golangci-lint happy
Since the golangci-lint action only validates changed
files, older code has never been fully linted.
This change fixes the linter for the whole module.
2023-01-25 13:17:01 +01:00
Pion
3d933930cc Update CI configs to v0.7.2
Update lint scripts and CI configs.
Excluding codecov.yml.
2022-04-27 21:48:56 -04:00
jinleileiking
0f7f72b905 Add more attributes info for String method
Comment ExampleMessage for passing test.
2021-04-01 18:49:59 -07:00
Aleksandr Razumov
46ba6d27f1 message: implement binary and gob encoding 2020-11-07 19:10:32 -08:00
ZHENK
85839ae560 Update CI configs to v0.4.7
Update lint scripts and CI configs.
Excluding codecov.yml.
2020-09-29 23:53:36 -07:00
Aleksandr Razumov
45ccc236e1 Simplify write methods
The m.grow call has too little overhead, so call
it every time.
2020-05-29 01:56:26 -07:00
Atsushi Watanabe
05f7805874 Fix lint errors
* Ignore disallowed-functions errors
  TODO:
  - Handle unintended input as error instead of panic.
  - Make executables only for testing as Go test.
* Fix filename lint error
  Replace hyphen by underscore.
* Disable godox linter
2020-05-06 00:26:51 -07:00
Yutaka Takeda
8b8a9409eb Translate old xor-mapped-address value
Also remove uri.go as unused and causing build error

Resolves #21
2019-09-13 01:18:25 -07:00
Aleksandr Razumov
9e96418777 Fix buffer grow for n < length
Forbid buffer length decrease.
2019-06-05 18:40:12 +03:00
Aleksandr Razumov
cee6be443a Optimize buffer grow
* Reuse capacity if possible
* If not, use slice trick that is optimized by compiler
2019-06-05 18:40:12 +03:00
Aleksandr Razumov
93cda343e1 Optimize internal buffer
Simplify Message.grow method and fix it's usage.
2019-06-05 18:40:12 +03:00
Aleksandr Razumov
ce5eeedaab all: reduce newline overuse 2019-03-08 22:12:06 +03:00
Aleksandr Razumov
ec20c32f2e message: fix linter warning instead of disabling warning for file 2019-02-19 00:04:51 +03:00
Aleksandr Razumov
af01db300c iana: add test for method values 2018-11-16 21:37:43 +03:00
Aleksandr Razumov
bf724e7f11 message: add methods from RFC 6062 2018-08-21 03:02:54 +03:00
Aleksandr Razumov
40dddc754d message: fix Encode and WriteAttributes methods 2018-08-16 00:52:40 +03:00
Aleksandr Razumov
04a5217700 message: handle multiple values for one attribute type in Equal() 2018-08-02 10:50:53 +03:00
Aleksandr Razumov
4a937fd9b8 message: fix CloneTo method 2018-07-13 00:11:05 +03:00
Aleksandr Razumov
b1195c12de message: copy on Decode 2018-06-23 12:07:33 +03:00
Aleksandr Razumov
a3f84b6dc7 message: add helper Decode function 2018-06-23 11:57:06 +03:00
Aleksandr Razumov
84ec516c71 message: implement Setter to allow crafting responses 2018-06-21 20:40:08 +03:00
Aleksandr Razumov
dca36b5973 message: check Decode error while doing CloneTo 2018-02-16 17:46:08 +03:00
Aleksandr Razumov
6a83e3ae20 message: add CloneTo method 2018-02-16 17:43:30 +03:00
Aleksandr Razumov
b282b70c84 message: improve attr equality check 2017-06-26 04:56:55 +02:00
Aleksandr Razumov
a9b46bdd0b message: reduce cyclomatic complexity for Equal 2017-06-26 04:51:34 +02:00
Aleksandr Razumov
a796f01aea all: make TransactionIDSize public 2017-06-26 03:58:21 +02:00
Aleksandr Razumov
0715f57ec2 message: check nil during equality check 2017-06-26 03:41:18 +02:00
Aleksandr Razumov
f139299e92 all: refactor errors, improve coverage, refactor 2017-06-26 03:18:07 +02:00
Aleksandr Razumov
08e16d29c3 message: refactor Method.String method 2017-06-25 14:49:36 +02:00
Aleksandr Razumov
3b65ed6a64 all: fix linters 2017-02-26 13:31:39 +03:00
Aleksandr Razumov
c124b51279 docs: fix typo 2017-02-22 21:53:31 +03:00
Aleksandr Razumov
e0f2549967 {docs,api}: add basic usage (fix #21, fix #27) 2017-02-22 21:52:23 +03:00
Aleksandr Razumov
138d40cebb message: add Contains method 2017-02-22 20:39:14 +03:00
Aleksandr Razumov
542983501d all: refactor text attributes and cleanup 2017-02-22 19:22:12 +03:00
Aleksandr Razumov
a341e30c4f message: reset attributes on decode 2017-02-21 04:30:46 +03:00
Aleksandr Razumov
991ccaebd6 api: add helpers, improve ux (fix #28) 2017-02-21 03:43:35 +03:00
Aleksandr Razumov
06831d9a79 message: use pointer reciever for consistency 2017-02-18 20:13:44 +03:00
Aleksandr Razumov
f4af1f1a53 attributes, message: adjust hex formatting 2017-02-12 22:36:33 +03:00
Aleksandr Razumov
3e59394bf8 message: remove package comment 2017-02-12 22:23:37 +03:00
Aleksandr Razumov
0d630c8890 message: use io.ReadFull for NewTransactionID 2017-02-12 19:04:47 +03:00
Aleksandr Razumov
2f1c33711b docs: remove "Definitions" not related to package 2017-02-12 19:02:04 +03:00
Aleksandr Razumov
35011556e2 message: remove Append method 2017-02-11 09:02:36 +03:00
Aleksandr Razumov
24fdee0da2 message: fix docs about constraints 2017-02-11 08:22:29 +03:00
Aleksandr Razumov
f1b2352162 all: remove usage of constant errors 2017-02-11 06:54:37 +03:00
Aleksandr Razumov
fba9f6b02d all: refactor attributes 2017-02-11 05:23:49 +03:00