aboutsummaryrefslogtreecommitdiff
path: root/lib/xmlrpc/xml.go
AgeCommit message (Collapse)Author
2026-01-03all: use SPDX license header formatShulhan
2024-03-05all: comply with linter recommendations #3Shulhan
For HTTP server that use TLS, set the minimum TLS version and ReadHeaderTimeout to mitigate slowloris attack. For HTTP client or server that parameterize the use of InsecureSkipVerify, annotate the line with "nolint:gosec" to allow the code pass the check. Library that still use sha1, in example in DKIM and TOTP, skip the warnings by annotating the line with "nolint:gosec". A pointer variable now allocated their address before assigning its value. Any error that returned now wrapped using "%w". Also, replace error checking using [errors.Is] or [errors.As] instead of using equal or not-equal operators. In "lib/http", replace any usage of "math/rand" with "crypto/rand". Any call of [math/big.Rat.SetString] now annotated with "nolint:gosec" since its false positive, the issue has been fixed in Go >= 1.17.7. Any switch case that does not cover the rest of the possible values now handled by adding the cases or by replacing the "default" case with the rest of values.
2023-09-14all: fix variable shadowing as reported by shadow toolShulhan
The shadow tool [1] report a variable where its name is declared twice or more, in different scope. [1] https://pkg.go.dev/golang.org/x/tools@v0.13.0/go/analysis/passes/shadow
2022-05-09all: reformat all codes using gofmt 1.19 (the Go tip)Shulhan
2021-05-19xmlrpc: replace Value field for struct with map of string and valueShulhan
Previously, for param with type "struct" is represented by slice of Member{Name,Value}. This commit changes the Value field for "struct" to a map of string and value for easily access the struct's member, without looping.
2021-05-19xmlrpc: refactoring the parser for decoding XML-RPC requestShulhan
This changes, * method to parse XML-RPC request, * change the Member field Value type to pointer to Value, * change the Request field Params type to slice of pointer of Value, * change the Response field Param type to pointer to Value, * rename the Value fields from Members to StructMembers and Values to ArrayValues
2020-06-10all: update email addressShulhan
2020-03-26all: fix and suppress linter warningsShulhan
2020-01-20xmlprc: package for working with XML-RPCShulhan
This package provide a client library for talking with XML-RPC server.