Dave Protasowski
8535fcc248
gofumpt the repo ( #3067 )
...
* gofumpt the repo
* don't prefix numbers with 0 - otherwise they're octal
2024-06-25 07:27:07 +00:00
Dave Protasowski
44d1d7d978
Go1.19 changes ( #2631 )
...
* run goimports
* ignore linter errors for now
* fix boilerplate
2022-11-03 22:34:05 +00:00
Victor Agababov
37583c54bf
Final Json -> JSON process ( #1849 )
...
I think there's no more
2020-10-26 16:25:41 -07:00
Victor Agababov
a371418524
v2 ( #1754 )
2020-09-29 13:18:29 -07:00
Victor Agababov
01017dcbf1
Fix the URL errors for go1.14 ( #1027 )
...
The error formatting changed, so update the tests so they work with both 1.13
and 1.14.
2020-01-31 11:12:28 -08:00
Dave Protasowski
f72610ea73
unit test to ensure semantic equality func is registered for apis.URL ( #988 )
2020-01-11 18:40:59 -08:00
Ville Aikas
cac31abb7f
Change URIFromDestinationV1 to return apis.URL instead of string ( #909 )
2019-11-27 13:13:22 -08:00
mattmoor-sockpuppet
2d54fc909d
golang format tools ( #791 )
...
Produced via:
`gofmt -s -w $(find -path './vendor' -prune -o -type f -name '*.go' -print))`
`goimports -w $(find -name '*.go' | grep -v vendor)`
/assign mattmoor
2019-10-23 13:37:29 -07:00
Evan Anderson
ea367c1342
Add utility methods for api.URL ( #785 )
...
* Add IsEmpty and HTTP/HTTPS constructors, simplify tests.
* Simplify remaining construction of URLs in tests with struct initialization.
* Reverse `nonEmpty` since most cases are now non-empty.
* Update initial tests. Also fix a bug in URL.String() and update test.
2019-10-21 19:11:25 -07:00
Scott Nichols
85d7d7ec71
correct a unmarshal error for non pointer members of apis.URL if empty string. ( #594 )
2019-08-22 08:03:34 -07:00
Matt Moore
57fd07886b
Add support for a structured URL type. ( #400 )
...
* Add support for a structured URL type.
This type can be used to accept `url: http://asdf.com ` where in code we
get a `url.URL` to interact with.
* Propagate errors parsing, cast pointer instead of copying.
2019-05-01 18:40:33 -07:00