dxlib

package module
v1.137.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2026 License: MIT Imports: 0 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

dxlib

dxlib is a Go library for building backend services. It provides an HTTP API server with typed endpoint parameters, OpenAPI reading and writing and end-to-end encryption; connections to PostgreSQL, MySQL and MariaDB, Oracle and SQL Server behind one table abstraction; structured logging; configuration files with sensitive-value masking; Redis with rate limiting, sessions and single sign-on; a TLS policy for servers and clients; a streaming writer and a hardened reader of .xlsx files; OpenTelemetry metrics; object storage; and the small utilities those share. LIBRARY.md lists every package and exported identifier, and https://pkg.go.dev/github.com/donnyhardyanto/dxlib renders the reference documentation. Consumers import it by module path and pin a release tag in their go.mod.

Released under the MIT License; see LICENSE. Third-party credits are in NOTICE.

[]: # with the following snippet from README.md: []: # # dxlib

Behaviour changes

Every change a consumer can notice, newest release first: what it did before, what it does now, who is affected and what to do. The BUG-NNN entries in BUG_HISTORY.md hold the detail.

Next release after v1.136.0
  • BUG-142, db.Count HAVING (databases/db). Breaking at compile time. Before: db.Count took havingClause string and ignored it, so a grouped count counted every group. Now: it takes havingClause utils.JSON and binds it as db.TxCount does; with a GROUP BY the count is the number of groups that pass. Affected: direct callers of db.Count (DXDatabase.Count is unchanged). Do: pass nil where you passed "", or the HAVING condition as a map.
  • BUG-141, update with an empty WHERE (databases, tables). Breaking. Before: db.Update, db.TxUpdate, the query builder's UpdateWithUpdateQueryBuilder2 and its Tx twin, and every tables update built on them changed every row of the table when the WHERE was nil or empty; ModelDBTable.Update sent UPDATE ... WHERE for the database to refuse. Now: each refuses it before anything is sent, with UPDATE without WHERE clause is not allowed and the table's name, as db.Delete does. Affected: code that updated a whole table through these calls on purpose. Do: pass an explicit condition, or run that statement yourself.
  • BUG-140, db.Update returning fields on SQL Server (databases/db). Breaking. Before: db.Update and db.TxUpdate wrote OUTPUT DELETED.<column> and returned each row as it was before the update. Now: OUTPUT INSERTED.<column>, the values after the update, as PostgreSQL's RETURNING and the query builder's SQL Server path return. Affected: SQL Server callers that read the old values from the result. Do: read the old values before the update if you need them.
  • BUG-044, built-in security fields (base, api, tables). Breaking, for a security reason. The columns the library writes itself (is_deleted, created_at, last_modified_at, created_by_user_id, created_by_user_nameid, last_modified_by_user_id, last_modified_by_user_nameid, listed in base.BuiltInSecurityFields) can no longer come from a request.
    • Before: an endpoint could declare them as parameters. Now: registering one that does (NewEndPoint, NewParameter, BindOpenAPI, StartAndWait) fails at startup with BUILT_IN_SECURITY_FIELD_DECLARED_AS_PARAMETER, naming the endpoint and the parameter; only inside filter_key_values or order_by may they be named. Affected, and what to do:
      • a write endpoint that declared one: remove the parameter; the library writes the field;
      • a list or read endpoint with a top-level filter parameter named like one (is_deleted to show deleted rows, created_by_user_id for the rows of one creator): move the filter under filter_key_values (or the sort under order_by), or give the parameter another name and map it in the handler;
      • an OpenAPI document whose shared row schema marks the audit columns readOnly: true and is reused in a requestBody: BindOpenAPI still turns a readOnly property into a request parameter (readOnly is an annotation only), so the document is refused; give the request body its own schema without those properties.
    • Before: a value for them in a write's data (a parameter, a request body copied into the row, a value the handler set itself) could reach the row: the identity on an open endpoint of a DXTable, is_deleted on an update, every field through DXRawTable's request paths. Now: on every table write with a request the value is dropped, with a warning naming the table, the field and the endpoint, and the request still succeeds. Affected, and what to do:
      • handlers that copy request data into the row: nothing to do; the library writes the fields;
      • a soft delete written as an edit: {"is_deleted": true} through a DXTable's DoUpdate, DoEdit or RequestEdit, or SetUpdateAuditFields(aepr, data) with is_deleted already in data followed by UpdateById, answered 200 and deleted the row; it now answers 200 and leaves the row as it was. Call DoSoftDelete (or RequestSoftDelete) instead, or set is_deleted in data after SetUpdateAuditFields(aepr, data) and then write through UpdateById, as DoSoftDelete does;
      • a restore written as an edit: {"is_deleted": false} is dropped the same way. A DXTable's own request edits never restored a row (they refuse a deleted row with 404), so this concerns a DXRawTable request edit, or the setter followed by UpdateById as above; set is_deleted after the setter in the same way;
      • a DXRawTable handler that set the audit columns itself and called DoInsert, DoCreate, DoUpdate or a Request* method: those values are now dropped, so the row keeps the column defaults, and an insert into a table whose audit columns are NOT NULL without a default fails. Use DXTable or DXTableAuditOnly, which write the audit columns themselves, or write through the raw table's Insert and UpdateById (no request) with values taken from the signed-in user, never from the request body;
      • a job, migration or seed that must record its own identity: write with no request, as before.
    • Before: rows written by an endpoint open to anyone recorded 0/SYSTEM. Now: -1/ANONYMOUS, or -1 and SERVICE:<certificate identity> when the caller has a client certificate the server verified; only internal code (no request) writes 0/SYSTEM. Rows already stored are not changed. Affected: reports or checks that read SYSTEM as "written by an open endpoint", and identity columns of an unsigned integer type, which cannot hold -1. Do: read ANONYMOUS and SERVICE: too; make such a column signed or text.
    • New: DXTable and DXTableAuditOnly UpsertWithAudit and TxUpsertWithAudit record the request's identity; DXTableAuditOnly's *WithValidation create and edit now write the audit fields (before, they wrote none).
  • BUG-043, tables DXPropertyTable integer reads. Before: an integer past 2^53 came back changed and 1.5 was read as 1. Now: every digit is kept; a fraction or a value out of range is an error. Affected: callers of GetAsInt, GetAsIntOrDefault, GetAsInt64. Do: handle the new error.
  • BUG-042, tables DXTableAuditOnly internal writes. Before: Insert, TxInsert, Upsert and TxUpsert wrote SYSTEM over an identity the caller had set. Now: the caller's identity is kept. Affected: handlers that set the identity and then called those. Do: nothing.
  • BUG-041, tables DoUpdate with no data. Before: a panic. Now: the update writes the audit fields only. Do: nothing.
  • BUG-040, tables inserts that return the new id. Before: an id that could not be read came back as 0 with no error. Now: the read error is returned, and inside a transaction the insert is rolled back. Affected: callers that took id 0 as success. Do: handle the error.
  • BUG-025 and BUG-039, encrypted insert, update and select (databases, tables). Before: table, column and key names went into the statement unchecked; an update with an empty WHERE was sent; a column with no key definition panicked. Now: a name that is not an identifier, an ORDER BY other than <column> [ASC|DESC], an update without WHERE and a column without its key are refused with the name. Affected: callers that passed such names or an empty WHERE. Do: pass plain column names and a WHERE.
  • BUG-038, tables encrypted paging with row_per_page 0. Before: a divide-by-zero panic. Now: every row, total pages 0, as the plain paging does. Do: nothing.
  • BUG-034, tables filter_key_values keys. Before: a key went into the statement as a bind name. Now: a key that is not an identifier is refused with INVALID_FILTER_FIELD_NAME. Affected: clients that sent such keys. Do: send column names.
  • BUG-028 and BUG-035, a second condition on the same field (databases builders, tables builders). Before: Where("id", 1).Where("id", 2), or a list's own Eq("owner_id", mine) followed by a request's filter on owner_id, bound the last value to both, so the first condition was lost. Now: each value is bound under its own name (owner_id, then owner_id_2...). Affected: queries that set two conditions on one field; their results change to what the conditions say. Do: check any query that relied on the overwrite.
  • BUG-023 and BUG-036, In, NotIn, InStrings, OrAnyLocationCode, EqOrIn string lists. Before: string values were written into the statement, open to injection on MariaDB. Now: they are bound as arguments. Affected: code that read the statement text or its arguments. Do: nothing.
  • BUG-022 and BUG-037, LIKE searches. Before: SearchLike escaped with a backslash and named no ESCAPE; the table builders named ESCAPE '\' (an unclosed literal on MariaDB) and used ILIKE on every engine. Now: every LIKE names ESCAPE '!', and the case-insensitive match is ILIKE on PostgreSQL and LOWER(field) LIKE LOWER(:value) elsewhere. Affected: searches on SQL Server, Oracle and MariaDB, which failed or matched wrongly. Do: nothing; a ! in search text is now matched as itself.
  • BUG-033, databases retried statements. Before: after four failed tries with a successful last reconnect, SelectPaging, Update and Delete returned a nil error. Now: the statement's last error. Affected: callers that took that for success. Do: handle the error.
  • BUG-032, Oracle session key context (databases, databases/models). Before: the key was written to APP_CTX and read from CLIENTCONTEXT, so salted hashes were computed without the salt. Now: written and read in APP_CTX. Affected: Oracle consumers with salted hash columns. Do: recompute every salted hash column from the decrypted value in a transaction where TxSetSessionKey set the salt, and re-apply the DDL generated from models. Other engines: nothing.
  • BUG-031, Oracle CreateDatabase. Before: the user got a fixed password published in this repository. Now: a random password that is never shown, and the account is locked. Affected: anyone who signed in with the old password. Do: an administrator sets a password and unlocks the user, or call CreateOracleUser instead when a known password is needed.
  • BUG-030, databases KillConnections on MariaDB. Before: success with sessions still connected. Now: each KILL that failed is named in the error. Do: handle the error.
  • BUG-029, insert, update and delete builders' Returning. Before: any text. Now: a name that is not an identifier sets the builder's Error. Do: pass column names.
  • BUG-027, a builder's WithCTE. Before: never written, so the query ran against a table of that name or failed. Now: the WITH clause is written. Do: nothing.
  • BUG-019, BUG-020 and BUG-026, Count and TxCount. Before: a subquery source was refused; GROUP BY was refused on PostgreSQL, SQL Server and Oracle; CountWithSelectQueryBuilder2 with GROUP BY returned the first group's size. Now: a subquery is accepted, and with GROUP BY the count is the number of groups. Affected: callers that counted grouped queries. Do: check code that used the group size.
  • BUG-018, databases HAVING. Before: HAVING values were never bound (the statement failed, or ran with WHERE's value) and keys were unchecked. Now: bound as having__<col> and checked. Do: nothing.
  • BUG-017, databases Upsert. Before: insert, update and where values were one map, so the update half took the insert's value. Now: each is bound apart. Affected: direct callers that passed different insert and update values. Do: nothing; the update now writes what was asked.
  • BUG-016, Oracle Delete and Insert without RETURNING with a SQLExpression. Before: refused by the driver. Now: written as SQL. Do: nothing.
  • BUG-014 and BUG-015, databases Update. Before: a column in both SET and WHERE was set to the WHERE value, and a SET key whose value was a SQLExpression went unchecked. Now: the SET value is kept apart, and every SET key is checked. Affected: compare-and-set updates, which changed nothing before. Do: nothing.
  • BUG-013, databases CheckIdentifier. Before: a quoted name with one doubled quote let a lone quote end it early, and SQL Server's [col[name] was refused. Now: every closing quote inside must be doubled, NUL is refused, and [col[name] is accepted. Do: nothing.
  • BUG-012, databases result sets. Before: a result set that broke mid-stream was returned as a short, complete result. Now: it is an error. Affected: callers on unstable connections. Do: handle the error.
  • BUG-011, databases SelectPaging. Before: a failed commit panicked. Now: it returns SELECT_PAGING_COMMIT_ERROR with no rows. Do: handle the error.
  • BUG-021, databases statement logs. Before: arguments were logged in clear, and only top-level JSON keys were masked. Now: a named argument is masked by its name, a positional one is logged as its type only, and nested maps are masked at every level. Affected: log readers. Do: rotate any secret that was logged.
  • vault AppRole client settings. Before: NewAppRoleClient also read the VAULT_* environment, so VAULT_SKIP_VERIFY, VAULT_AGENT_ADDR, VAULT_ADDR, VAULT_NAMESPACE, VAULT_HEADERS, VAULT_CACERT, VAULT_CAPATH, VAULT_CLIENT_CERT, VAULT_WRAP_TTL, VAULT_MAX_RETRIES and the rest changed where it logged in and how. Now: it takes its settings from AppRoleConfig alone (the standard proxy variables still apply) and ignores every VAULT_* variable. Affected: deployments that configured the client through the environment. Do: put those settings in AppRoleConfig.
  • vault AppRole client after Stop. Before: Start after Stop returned nil with no renewal, and the token ran out silently. Now: it returns an error naming the address. Do: make a new client.
  • databases and redis credential providers. New: DXDatabase.CredentialProvider (PostgreSQL) and DXRedis.CredentialProvider (single node) take the credential from a provider on every new connection, so a credential renewed with its lease is used without failing requests in flight: DXDatabase.RotateCredentials retires the connections opened with the old one, and Redis replaces a connection the server drops when the old user is removed and retries the command. Other engines and Redis Sentinel refuse a provider. Affected: nothing unless a provider is set.
  • messaging/fcm cached client. New: StoreApplicationVersion takes the credential's version and client options; the cached client is replaced when the version changes. StoreApplication keeps its behaviour. Do: call StoreApplicationVersion when the service account is rotated.
  • BUG-045, api int64 and id parameters. Before: a JSON number past 2^53 - 1 was rounded and reached the handler as another id. Now: it is refused with 422 INT64_NOT_EXACT_AS_JSON_NUMBER; a decimal string keeps every digit, also for array-int64 items and multipart values. Affected: clients that send ids past 2^53 - 1 as JSON numbers (JavaScript cannot hold them exactly anyway). Do: send such ids as strings.
  • BUG-046, api ProxyHTTPAPIClient. Before: every 2xx answer from the downstream was turned into a 500. Now: a 2xx answer reaches the handler with its body. Affected: handlers that call it. Do: drop any workaround that expected the 500.
  • BUG-047, api npwp field format. Before: any text holding 15 or 16 digits passed. Now: a value without . or - must be the digits alone. Affected: clients that sent spaces or other characters around the number. Do: send the bare digits or the dotted form.
  • BUG-049, api DXAPIManager.StopAll. Before: it did not stop the servers and waited until the group's context was cancelled another way. Now: it shuts every server down, then waits for the error group it was started with, so it returns once everything else in that group has ended too. Affected: services that call it and relied on it blocking. Do: nothing, unless shutdown order depended on the old wait. DXApp.Stop stops the tasks first, and task.DXTaskManager.StopAll still does not stop them, so in an app with tasks Stop still blocks there (open, not yet fixed).
  • BUG-050, api GetIPAddress. Before: a bare IPv6 address in X-Proxy-Client-IP, X-Forwarded-For or X-Real-IP came back as "". Now: the address itself, without brackets. Affected: audit logs and rate limits keyed on the client address, which saw every such IPv6 client as one empty address. Do: nothing.
  • BUG-051, log LogText. Before: an error logged with a location was recorded under the log's prefix. Now: the caller's location is kept; the prefix stands in only for an empty one. Affected: log searches keyed on the prefix for those lines. Do: search on the location too.
  • BUG-052, log Telegram alerts. Before: cut at byte 4096, no timeout. Now: cut at 4096 characters on a character boundary, sent with a 10 s deadline; a failed send is logged through slog. Affected: services that set a Telegram bot. Do: nothing.
  • BUG-053, configuration dumps (ShowToLog, AsNonSensitiveString). Before: a credential inside an array of objects, or a *SecureValue in an array, was written out in clear. Now: it is masked like one in a nested object, and the configuration itself is left unchanged. Affected: log readers who found those values in start-up dumps. Do: rotate any secret that was logged that way.
  • BUG-054, configuration GetInt and GetInt64. Before: a number from a JSON file (and, for GetInt64, a YAML file) was refused with CONFIGURATION_GET_INT*_TYPE_ERROR. Now: whole numbers of any of those decodings are read; a fraction, a value out of range or a float past 2^53 is refused with the reason. Affected: code that worked around the refusal. Do: the workaround can go.
  • BUG-055, endpoint_rate_limiter ResetAll. Before: it also deleted the keys of limiters whose prefix starts with this one's, and of groups its name matched as a glob. Now: only this limiter's own group keys. Affected: code that relied on the wider reset. Do: reset each limiter on its own.
  • BUG-056, auth/simple Authenticate. Before: any Redis key holding JSON was accepted as a session, and any key named got the session TTL. Now: only a 64-character lowercase hex value, the form Login makes, is looked up; anything else is an unknown session. Affected: callers that passed other keys. Do: pass the key Login returned.
  • BUG-057, sso DXOrganization.ApplyData. Before: a missing or mistyped field panicked. Now: it returns SSO_ORGANIZATION_FIELD_INVALID:<field>. Affected: code that recovered from the panic. Do: check the error.
  • BUG-060, login_system session numbers. Before: a whole number past 2^53 stored in a session (a user id) came back rounded, as another value, and an update wrote the rounded value back. Now: every digit is kept; whole top-level numbers are still int64 and every other number float64, as before. Affected: sessions of users whose id is past 2^53. Do: nothing.
  • BUG-062, login_system negative tenant ids. Before: a tenant id below zero shared tenant 0's session keys. Now: every tenant id other than 0 has its own prefix (t-5:). Affected: deployments with negative tenant ids. Do: nothing; those tenants' users sign in again once.
  • BUG-063, login_system RedisWithDB InstanceUpdateSessionData. Before: a failed Redis or database write was logged and nil returned. Now: the failure is returned. Affected: callers that ignored the error. Do: handle it.
  • BUG-064, api HTTPClientDo GET parameters (also HTTPClient, HTTPClient2, ProxyHTTPAPIClient). Before: keys and values went into the query string unescaped, so &, = or # in a value added or cut parameters. Now: each is escaped, and the keys go out sorted. Affected: callers that escaped their values themselves. Do: pass the values raw, or they are escaped twice.
  • BUG-065, sso DatabaseTableUserFieldUserId. Before: it was read from database_table_user_field_user_login, so it always named the login column. Now: it is read from database_table_user_field_user_id, falling back to the login column when that key is missing; a value that is not a string is refused. Affected: db_password organizations. Do: nothing for existing configurations; add the key to name a separate id column.
  • BUG-066, login_system DBOnly and RedisWithDB session lookups. Before: a session was found in the session table by its key alone, whatever the instance's tenant. Now: also by appmanagement_appinstance_id = the instance's TenantId, the value it was registered with. Affected: deployments that read, update or remove a session through an instance with another tenant id than the one that registered it. Do: use the registering tenant's instance, or LoginSystemManager, which finds it.
  • BUG-067, api OpenAPI binder. Before: a POST or PUT with an application/x-www-form-urlencoded or text/plain request body bound, and every call to it was answered 422. Now: the document is refused at load with OPENAPI_UNSUPPORTED_MEDIA_TYPE, naming the operation. Affected: services whose document declares such a body; they now stop at startup instead. Do: declare the body as application/json, multipart/form-data or application/octet-stream.
  • BUG-068, databases DXDatabaseTx.TxDelete (also tables TxHardDelete, TxDeleteById). Before: a delete that succeeded returned a nil result, and one that failed returned no error; login_system panicked on every logout, kick and expiry in DBOnly and RedisWithDB mode. Now: the result and the error are returned. Affected: callers of these in a transaction, and DB-mode session stores. Do: handle the error a failed delete now returns.
  • BUG-069, api HTTPClientDo GET url (also HTTPClient, HTTPClient2, ProxyHTTPAPIClient). Before: the parameters were joined to the url with a bare ?, so a url that already held a query went out as ?a=1?b=2 (the downstream read a as 1?b=2 and no b), and no parameters left a trailing ?. Now: the url's own query is kept as written and the parameters follow it after &; with none, the url goes out unchanged. Affected: callers that put a query in the url, or that worked around the stray ?. Do: drop any such workaround.
  • BUG-070, task a task that succeeds. Before: the process panicked after every successful OnExecute. Now: the task carries on. Affected: every service with tasks. Do: nothing.
  • BUG-071, task DXTaskManager.StopAll (and app DXApp.Stop). Before: it stopped no task and waited for the whole error group, so DXApp.Stop in an app with tasks and an API never returned, and a task slept out its after_delay_sec before seeing a cancel. Now: it cancels every task, a sleeping task wakes at once, and it returns when its own tasks have ended, with the first error one of them ended with. Affected: services with tasks that stop through DXApp.Stop or StopAll. Do: nothing, unless shutdown relied on the old wait; a task's OnExecute should watch task.Context to end a long run early.
  • BUG-072, task configuration without after_delay_sec. Before: StartAll failed and no task started. Now: the task keeps the delay NewTask was given; a value that is not a whole number is refused with TASK_CONFIGURATION_AFTER_DELAY_SEC_INVALID:<task>. Affected: configurations that left the key out. Do: nothing.
  • BUG-073, utils/json getter errors (GetString, GetNumber, GetInt64, GetInt, GetFloat*, GetTime). Before: the error text held the whole map, can not get k as int64 from map[...]. Now: can not get "k" as int64: the value is a string or : key not found, with no value. Affected: log readers, and anything that matched the old text. Do: rotate any secret a log may hold from such an error.
  • BUG-074, utils/json GetNumber and the integer getters. Before: 1.5 read as an integer came back as 1, an out-of-range value wrapped, NaN and infinities passed, an int asked as int64 was refused, and GetNumberWithDefault gave the default for anything but a float64. Now: a value the type cannot hold exactly is refused with the reason (a float64 past 2^53 included: send such ids as text); every Go integer and float type is read with a range check; GetNumberWithDefault gives the default only where GetNumber errs. Affected: callers that fed fractions or huge numbers into integer getters. Do: handle the error, or read the value as a float.
  • BUG-075, utils/json DeepMerge. Before: a nil target panicked. Now: a new map is returned. Affected: none that worked. Do: nothing.
  • BUG-076, utils MaskForLog and MaskForAnswer. Before: a map[string]string, map[string][]string or []string was logged as one value, so a credential inside it went out in clear. Now: typed maps with string keys and typed slices are walked like map[string]any and []any, each field and element masked under its own key; in the output they are map[string]any and []any. Affected: log readers, and code that type-asserts the masked copy. Do: rotate any secret a log may hold; assert the generic types.
  • BUG-077, utils IsValuesMatch (and tables' unique-field check on insert and update). Before: two different ids past 2^53 matched, so a duplicate unique value was taken for the caller's own row; []byte pairs panicked. Now: integers are compared exactly, []byte by content. Affected: tables with large ids. Do: nothing.
  • BUG-078, utils ConvertToInterface*FromAny. Before: nil was refused by the bool, int, int64, float64 and map forms, and the array form refused every []any. Now: nil gives nil there, and []any is accepted. Affected: callers that relied on the refusal. Do: check for a nil result.
  • BUG-079, utils ConvertToInt64, ConvertToInt, ConvertToInterfaceIntFromAny, ConvertToInterfaceInt64FromAny. Before: 1.5 became 1, and out-of-range floats came back as whatever the platform gave. Now: refused with FLOAT_NUMBER_IS_NOT_INTEGER, FLOAT_NUMBER_OUT_OF_RANGE or INTEGER_OUT_OF_RANGE_FOR_INT. Affected: callers passing fractional floats. Do: round on purpose before the call.
  • BUG-080, utils GetAllActualBindingAddress, TimeSubToString. Before: an address without a port, or a value that is not a time.Time, panicked. Now: nil and "". Affected: none that worked. Do: nothing.
  • BUG-081, utils/crypto/datablock Ed25519 key length. Before: a key of the wrong length panicked. Now: ED25519_PRIVATE_KEY_LENGTH_INVALID or ED25519_PUBLIC_KEY_LENGTH_INVALID. Affected: none that worked. Do: nothing.
  • BUG-082, utils/crypto/rand Float64 and RandomString. Before: Float64 could return 1.0, and RandomString cut characters past ASCII into bytes. Now: Float64 is in [0, 1) in steps of 2^-53, and RandomString returns n whole characters (len in bytes is more than n for such a charset), "" for n < 1. Affected: callers with a non-ASCII charset. Do: count characters, not bytes.
  • BUG-083, language ParseDictionary. Before: entries after a line past 64 KiB were dropped. Now: all lines are read. Affected: dictionaries with such a line. Do: nothing.
  • BUG-084, secure_memory empty secrets. Before: Secure("") could not be resolved. Now: it resolves to "". Affected: configurations with a blank secret. Do: nothing.
  • BUG-085, testing Style0, Style1, DoHTTPClientTest, THTTPClient. Before: a negative test with an error body always failed, a chunked body was not checked, a failed request panicked on a nil dump. Now: the body is read whatever the status and framing, and a failed request fails the test with its error. Affected: test suites using these helpers; a positive test with a chunked body is now really checked and may newly fail. Do: fix what the newly checked tests report.
  • BUG-086, utils/jwt Validate. Before: with an empty key, a token signed with an empty key was valid. Now: an empty key is refused with JWT_VALIDATION_KEY_IS_EMPTY; only HS256, HS384 and HS512 are accepted. Affected: callers whose key could be blank. Do: configure the key.
  • BUG-087, utils/lv readers. Before: a length field past the data was allocated first (four bytes could ask for 8 GiB), then failed with EOF. Now: refused before any allocation with LV_LENGTH_EXCEEDS_DATA (LVLE_...), wrapping io.ErrUnexpectedEOF. Affected: callers matching io.EOF on a short value. Do: match io.ErrUnexpectedEOF, or just the error.
  • BUG-088, utils/http RequestContentType.String(). Before: the form encoding was spelled application/x-public-form-urlencoded. Now: application/x-www-form-urlencoded. Affected: code or generated docs that compared the old text. Do: use the registered name.
  • BUG-089, utils/http/client HTTPClient, HTTPClientReadAll. Before: a nil body was refused, and an unsupported body's value was written into the error. Now: a nil body sends none; an unsupported body is refused with HTTP_CLIENT_BODY_TYPE_NOT_SUPPORTED:<type>:.... Affected: code that matched the old SHOULD_NOT_HAPPEN:TYPE_CANT_BE_CONVERTED_TO_BYTES text. Do: match the new code.
  • BUG-090, utils/os LoadEnvFile. Before: a comment line holding = was set as a variable named after the text before the =. Now: blank and # lines set nothing. Affected: anything that read such a variable (unlikely on purpose). Do: nothing.
  • BUG-091, utils/os GetEnvDefaultValueAsInt. Before: a bad value panicked with strconv's message, holding the value but not the variable's name. Now: it panics with ENV_VALUE_IS_NOT_AN_INTEGER:<name>:<reason>. Affected: nothing that recovers the panic by its text. Do: nothing.
  • BUG-092, utils/xlsx OpenReader. Before: MaxFileSize set to math.MaxInt64 read nothing and refused every workbook. Now: the workbook is read up to that size. Affected: callers that set that value. Do: nothing.
  • BUG-093, utils/tls server deny-file and CA reload. Before: two handshakes that saw different reloads could leave the older deny-file's suites and curves in force. Now: the newest reload always wins. Affected: servers with a deny-file or ca-files that change at run time. Do: nothing.
  • BUG-094, utils/tls/tlstest serials. Before: issuing certificates from parallel tests raced and could repeat a serial. Now: it is safe from parallel tests. Affected: tests that use tlstest in parallel. Do: nothing.
  • BUG-095, utils ConvertToInterfaceStringFromAny and its Must form. Before: a float64 became text with six decimals (1.5 -> "1.500000", 1e-7 -> "0.000000"). Now: the shortest exact text ("1.5", "0.0000001"). Affected: code that compares, stores or keys on that text. Do: expect the new form; stored values written before keep their old text.
  • BUG-097, utils/http/client handshake warning and trace. Before: the full URL, query values and any password in it, went into the warning and the span. Now: query values read REDACTED and a password is masked; the returned error is unchanged. Affected: log searches or dashboards that read query values from these lines. Do: search by host and path.
  • BUG-098, redis Set, Get, GetEx, MustGet errors. Before: the error and the trace span held the value (or its bytes). Now: they name the Redis and the key only. Affected: log searches on the value. Do: search by key.
  • BUG-100, redis operations before Connect. Before: a nil pointer panic. Now: an error REDIS_NOT_CONNECTED:<NameId>. Affected: none that worked before. Do: nothing.
  • BUG-101, vault VaultMapString, VaultMapping. Before: a nil pointer panic when Start had not run or the path did not exist. Now: an error naming the path. Affected: none that worked before. Do: nothing.
  • BUG-102, vault VaultMapString. Before: keys were replaced one by one in random order, so where one key starts another (DB, DB_PASS) the result changed from run to run, and a value holding a placeholder was replaced again. Now: the longest placeholder wins and each value is put in as it is. Affected: texts with such keys, or secrets that hold <prefix>KEY. Do: nothing, unless a secret relied on the second pass.
  • BUG-103, vault reads. Before: the context was ignored; a cancelled caller waited up to the client's timeout. Now: the read ends with the context. Affected: callers that pass a short-lived context. Do: nothing.
  • BUG-112, vault DXAppRoleClient.Stop. Before: with a renewal or login in flight it waited up to Timeout, then reported the request to OnAuthError. Now: the request ends at once and nothing is reported. Affected: services that stop the client at shutdown. Do: nothing.
  • BUG-104, object_storage uploads of unknown length. Before: each took about 537 MiB of memory, and a chunked body was not held to the endpoint's RequestMaxContentLength. Now: a 16 MiB part (UnknownSizePartSizeBytes), so one such upload stores at most about 156 GiB; ReceiveStreamObject answers 413 REQUEST_MAX_CONTENT_LENGTH_EXCEEDED past the endpoint's limit. Affected: endpoints that take chunked uploads. Do: raise UnknownSizePartSizeBytes if objects of unknown length can pass 156 GiB.
  • BUG-105, object_storage SendStreamObject Content-Disposition. Before: the name went in unescaped. Now: quoted and escaped (RFC 2231 outside ASCII). Affected: clients that parsed the header by hand. Do: parse it as a media type.
  • BUG-106, object_storage SendStreamObject file name. Before: always the object's name. Now: the object's x-amz-meta-filename metadata when it has one. Affected: downloads of objects stored with that metadata by another client. Do: nothing.
  • BUG-107, object_storage ConnectAll, ConnectAllAtStart. Before: a configuration error came back as "Cannot configure to databases to connect". Now: OBJECT_STORAGE_CONFIGURATION_ERROR:<name> with the cause. Affected: log searches on the old text. Do: search on the new code.
  • BUG-108, app SetupNewRelicApplication. Before: it used app.App's NameId whatever the receiver. Now: the receiver's. Affected: only code that calls it on a DXApp other than app.App. Do: nothing.
  • BUG-109, app OpenAPI dump. Before: an API NameId such as ../x wrote outside the dump directory. Now: the dump is refused with OPENAPI_DUMP_API_NAME_NOT_A_FILE_NAME before anything is written. Affected: services with such a NameId. Do: rename the API.
  • BUG-110, websocket/gorillaws dial through a proxy. Before: a proxy reply such as HTTP/1.1 407 (no reason phrase) panicked. Now: an error naming the status. Affected: none that worked before. Do: nothing.
  • BUG-111, examples/db_testing. Before: the example deferred dtx.Finish(&log.Log, err), which commits a failed transaction. Now: defer func() { dtx.Finish(&log.Log, err) }(). Affected: code copied from the example. Do: make the same change there.
  • BUG-099, redis pool settings. Before: pool_size, min_idle_conns, max_conn_age_minutes and idle_timeout_minutes from a configuration file were ignored and go-redis's defaults applied. Now: they are used; a value that is not a whole number from 0 up is logged as a warning and the default applies. Affected: services whose configuration sets them; the pool now has the size the file asks for. Do: check those values before upgrading.
  • BUG-113 and BUG-114, databases/sqlfile (SqlFile, DXDatabase.ExecuteFile). Before: every non-ASCII character of a script was executed as two to four wrong characters ('café' became 'café'), and a PostgreSQL function body that starts right after its dollar-quote tag ($$BEGIN) was split at its first ;. Now: the text is executed as written, and such a body stays one statement. Affected: scripts with non-ASCII text, which stored it wrong, and scripts with such bodies, which failed. Do: check data loaded from such scripts before the upgrade.
  • BUG-115, databases CheckDatabaseError / ReplaceErrorMessage. Before: a relabelled driver error (ERROR_DB_DUPLICATE_KEY, ERROR_DB_NOT_CONNECTED) no longer held the driver error, so errors.Is and errors.As on it failed. Now: the driver error is its cause. Affected: code that tests those errors with errors.Is / errors.As, which now matches. Do: nothing.
  • BUG-116, databases IsConnectionError on Oracle. Before: an Oracle error whose text held "timeout", "socket" and the like (a table named SESSION_TIMEOUT) counted as a lost connection and was retried. Now: Oracle errors are judged by their ORA code. Affected: Oracle services. Do: nothing.
  • BUG-117, databases IsErrorType. Before: a target error with an empty message matched every error. Now: it matches only itself. Affected: callers passing such a target. Do: nothing.
  • BUG-119, databases DXDatabaseManager. Before: ConnectAll and ConnectAllAtStart failed with "Cannot configure to databases X to connect" and no reason; LoadFromConfiguration panicked on a name that is not loaded. Now: "cannot configure database X to connect: ", and an error for the missing configuration. Affected: log searches on the old text. Do: search on the new text.
  • BUG-120, databases configuration. Before: pool_max_open_conns, pool_max_idle_conns, pool_conn_max_lifetime_minutes, pool_conn_max_idle_time_minutes and create_script_files from a configuration file were ignored and the defaults (5, 3, 60, 30, none) used. Now: the configured values apply; one that cannot be used is logged as a warning and the default kept. Affected: services with these keys in their configuration, whose pools now take the configured sizes. Do: check the values are the ones wanted.
  • BUG-121, databases Connect. Before: after a failed first ping Connection (and PgxPool) stayed set to an open pool. Now: both are closed and nil after the error. Affected: code that read Connection after a failed Connect. Do: check Connected or the error instead.
  • BUG-122, databases CheckIsErrorBecauseDbNotExist. Before: always false on PostgreSQL, and a nil error panicked. Now: true for SQLSTATE 3D000, false for nil. Affected: callers that create the database when it is missing, which now runs. Do: nothing.
  • BUG-123, databases connection strings. Before: the PostgreSQL and SQL Server connection strings held the user name, password and database name unquoted, so a space, quote or ; broke them. Now: each value is quoted for its driver. Affected: code that compares ConnectionString text. Do: compare the parsed values instead.
  • BUG-124, databases/export CSV to a file. Before: a write or close failure (a full disk) returned nil and left an empty or cut file. Now: the error is returned, naming the file, and the file is removed. Affected: callers of ExportQueryResults with CSV. Do: nothing.
  • BUG-125, databases/export Timezone. Before: an unknown zone was ignored and timestamps kept their own zone. Now: ExportQueryResults and ExportToStream fail with "unknown export timezone". Affected: callers passing a zone name the Go time database does not know. Do: pass an IANA name such as Asia/Jakarta, or "" for the timestamps' own zone.
  • BUG-126, databases/models views, materialized views and triggers. Before: a table of a schema was named schema.table (database schema) in view, materialized view and trigger DDL on MariaDB, and a joined table (the JOIN target and its columns) was named by its model name on every engine, without UseTableSuffix or PhysicalTableName. Now: every table a view, materialized view or trigger reads is named as CREATE TABLE made it (`schema.table` on MariaDB, the suffix or physical name everywhere); a joined view keeps its own name. Affected: MariaDB models with a schema; on any engine, views joining a table that has a suffix or a physical name. Do: re-create those triggers, views and materialized views; on MariaDB the views' own names are still wrong (BUG-136, open).
  • BUG-127, databases/models generated columns. Before: the column name was unquoted. Now: quoted like every other column, except a PostgreSQL name with capitals (unchanged). Affected: none for plain lower-case names. Do: nothing.
  • BUG-128, databases/models PostgreSQL constraint triggers. Before: CREATE TRIGGER ... DEFERRABLE (refused by PostgreSQL). Now: CREATE CONSTRAINT TRIGGER. Affected: models with IsConstraint. Do: nothing.
  • BUG-129, databases/models MariaDB triggers. Before: a trigger with several events was created for the first one only. Now: CreateDDL returns an error. Affected: MariaDB models with such triggers. Do: define one trigger per event.
  • BUG-130, databases/models SelectOne on Oracle. Before: LIMIT 1 (ORA-00933). Now: FETCH FIRST 1 ROWS ONLY. Affected: Oracle users of SelectOne. Do: nothing.
  • BUG-131, databases/models database and schema DDL. Before: an unknown engine panicked; PostgreSQL extensions were unquoted. Now: an error, and CREATE EXTENSION IF NOT EXISTS "name". Affected: code that recovered the panic. Do: check the error.
  • BUG-135, databases/models ModelDBTable query helpers. Before: SelectOne, SelectMany, Insert, Update and Delete named a MariaDB table of a schema schema.table (table of database schema). Now: `schema.table`, the table CREATE TABLE made; Delete takes the engine: Delete(db, dbType, where, args...). Affected: every caller of ModelDBTable.Delete (compile error), and MariaDB models with a schema. Do: pass the engine to Delete, as the other four helpers take it.
  • BUG-137, databases/models MariaDB index method. Before: CREATE INDEX i ON t USING HASH (c) (refused by MariaDB). Now: CREATE INDEX i USING HASH ON t (c). Affected: MariaDB models with an index method other than BTREE. Do: nothing.
  • BUG-138, databases/models index INCLUDE columns. Before: written bare. Now: quoted like the indexed columns. Affected: PostgreSQL and SQL Server indexes with INCLUDE; a column with capitals now names the column CREATE TABLE made. Do: nothing.
  • BUG-139, databases/models foreign keys. Before: References: "sales.customers.id" was written as REFERENCES sales.customers even when that model table is created as customers_t (UseTableSuffix) or under a PhysicalTableName. Now: the physical name. Affected: models whose foreign keys point at such tables (their CREATE TABLE was refused before). Do: nothing.
  • BUG-024, databases/db/query/utils IN clauses and db.SQLExpression. Before: SQLBuildWhereInClauseStrings wrote string values inline (injectable on MariaDB and MySQL), and a db.SQLExpression in a where map could not carry bound values. Now: SQLBuildWhereInClauseStringsFor and SQLBuildWhereInClauseInt64For take the engine and return the clause with its values bound, 1=0 for an empty list, and an error past the engine's parameter limit; db.SQLExpression has an Arguments field that every where map, set map and builder binds with the statement (the encrypted update refuses an expression with Arguments, since it binds by position). The old helpers are unchanged and marked Deprecated. Since SQLExpression now holds a map, it is no longer comparable: a == b on two of them does not compile, and comparing two through any panics. Its second field also breaks two other uses at compile time: an unkeyed literal such as db.SQLExpression{"NOW()"} (too few values in struct literal), and a map keyed by SQLExpression or any other use that needs a comparable type (invalid map key type). The encrypted select (SelectWithEncryption and the calls built on it) now writes its where conditions in key order and binds every expression's Arguments before naming a plain entry, so the statement is the same on every run. Affected: callers of the old helpers (deprecation warnings from linters), code that compares SQLExpression values, writes it unkeyed or uses it as a map key. Do: move to the For helpers, or to SelectQueryBuilder.BuildInClause / TableSelectQueryBuilder.In; compare .Expression instead of the whole value; write the keyed form db.SQLExpression{Expression: "NOW()"}; key a map by .Expression.

Reporting bugs and contributing

GitHub issues and discussions are off on this repository, and pull requests from outside contributors are not accepted: public issues are used as a lead-in to malicious pull requests that claim to fix them, so bugs are tracked in files instead.

  • Bug reports and enhancement requests: email hardyanto.donny@gmail.com with dxlib in the subject, the version tag, what you ran and what happened. Every report is acknowledged; a confirmed bug gets a BUG-NNN entry in BUG_OUTSTANDING.md, moves to BUG_HISTORY.md when fixed, and the fixing commit says Fixes BUG-NNN. Those two files and the git history are the public archive of reports and their outcome.
  • Security weaknesses: never by email or in public; follow SECURITY.md.
  • Changes: the maintainer makes them from the reports. Every change meets the same bar before it is committed: gofmt, go vet and go test -race ./... clean (the CI workflow runs the same on every push), a test for each new behaviour and for each bug fixed, and the dependency scan and licence check below for any dependency change.

Dependencies

Every new or upgraded dependency is scanned and its licence checked before the change is committed. From the repo root, after go get and go mod tidy:

syft dir:. -q -o cyclonedx-json=/tmp/dxlib-sbom.cdx.json
grype sbom:/tmp/dxlib-sbom.cdx.json
osv-scanner scan source -r .
govulncheck ./...
trivy fs --scanners vuln .

The databases disagree at times, so all five run and the union counts. Every dependency must be open source under an OSI-approved licence; syft lists the licences from the module cache after go mod download:

SYFT_GOLANG_SEARCH_LOCAL_MOD_CACHE_LICENSES=true syft dir:. -q -o json \
  | jq -r '.artifacts[] | [.type, .name, .version, ([.licenses[]?.value] | join(" | "))] | @tsv'

An empty licence column means syft could not name it: read the package's licence file. The commit message records the scan result and the licences.

Accepted findings: .dependency-allowlist.json

A finding that no version change can clear is recorded in .dependency-allowlist.json at the repo root. The pre-commit dependency scan reads it, so an entry can arrive in the same commit as the dependency it covers:

{"licences":           {"<name>[@<version glob>]": "<SPDX licence, checked by hand>"},
 "licence_exceptions": {"<name>[@<version glob>]": "<why the owner accepted it>"},
 "vulnerabilities":    {"<GO-, GHSA- or CVE- id>": "<why the owner accepted it>"}}

A vulnerability is accepted only on the owner's word, and only with proof from govulncheck that no dxlib code calls the vulnerable package: its report must say the code is affected by 0 vulnerabilities, with the finding listed under modules that are required but not called. The entry says why, when it was accepted and when to look at it again. It is removed once a fixed release exists.

Current entries:

  • GO-2026-5932 in golang.org/x/crypto, accepted 2026-10-05. The advisory declares golang.org/x/crypto/openpgp unmaintained and unsafe by design, and it covers every release of the module (introduced at v0, no fixed version), so no upgrade clears it. dxlib imports only argon2 and bcrypt from the module; both lack a standard-library equivalent. Nothing imports openpgp, and govulncheck reports the package is not called. Review by 2027-04-05, or sooner if a fix appears.

A project that depends on dxlib inherits this finding through dxlib's go.mod. It can accept it the same way, citing this entry, provided its own govulncheck run shows the same: openpgp not called.

Trivy has no reachability filter and does not read the allowlist, so an accepted finding is also listed in .trivyignore with its review date as the expiry (GO-2026-5932 exp:2027-04-05). When the entry expires Trivy reports the finding again, which is the prompt to review it.

Releasing

A release is a tag, one draft release on GitHub, the SBOMs on that draft, and then the publish. GitHub makes a published release immutable, so nothing is published until both SBOMs are on the draft. The order:

  1. git tag -a vX.Y.Z <commit> on the reviewed commit. The tag message is the release's hand-written notes: its first line is the headline, the body carries what consumers must know.
  2. git push origin vX.Y.Z. This starts the Release workflow (.github/workflows/release.yml), which runs the build, vet and tests before it reaches GitHub, about two minutes.
  3. Straight after the push, before the workflow finishes: gh release create vX.Y.Z --verify-tag --draft --title vX.Y.Z --notes-from-tag. The title must be the tag itself, nothing more. GoReleaser (use_existing_draft in .goreleaser.yaml) reuses a draft only when its title equals its name_template, which is the tag; it does not look at the draft's tag. A draft titled anything else is passed over and GoReleaser makes a second draft beside it, as happened on v1.133.0. GitHub's REST API cannot look up a draft by its tag, which is why GoReleaser matches on the title. Put the headline in the tag message, not in the title.
  4. Wait for the workflow to finish (gh run watch). GoReleaser finds the draft, appends its changelog under the notes (mode: append) and uploads the source archive and checksums. Check there is one draft for the tag: gh api repos/donnyhardyanto/dxlib/releases --jq '[.[] | select(.draft and .tag_name == "vX.Y.Z")] | length' must print 1.
  5. agentq sbom dxlib vX.Y.Z: it scans the tag's tree, commits sbom/<tag>/, uploads both SBOMs to the draft, adds the scan summary to its notes, publishes it and checks both files are on it.

If step 3 came too late and the workflow has already made its own draft (titled with the tag), do not create another: change that one with gh release edit vX.Y.Z --notes-file <file>.

Edit a draft only with gh release edit, never with a bare PATCH of repos/.../releases/<id>. GitHub drops a draft's tag when an update leaves out tag_name, and the draft becomes untagged-<hash>; gh release edit finds a draft by its tag and always sends tag_name back. A script that must use the API sends tag_name and draft: true with every update.

Never publish a draft by hand: a release without its SBOMs claims what it does not carry.

Compliance and Security

Every release's software bill of materials is committed in sbom/<tag>/ at the root of this repository, in two formats from the same syft run: CycloneDX JSON (<name>-<version>.cdx.json) and SPDX JSON (<name>-<version>.spdx.json). Beside them are the report of each scanner that ran on the release's tree (grype on the SBOM, osv-scanner on the source, govulncheck for each Go module, and the repository's own scanners when it names any), tools.json with the scanners' versions and exit statuses, allowlist-applied.json with the accepted findings that applied, and a README.md naming the tag, the commit scanned, the date and the result. Both SBOMs are also attached to the GitHub release, uploaded while it is still a draft, and the release's notes carry the scan summary; a release is published only once both files are on it.

The records go back to v1.128.0. Four releases carry no asset: v1.129.0, v1.130.0, v1.131.0 and v1.132.0 were published by the release workflow within minutes of their tag push, GitHub makes a published release immutable, and the upload that followed was refused, although their notes claimed the file (BUG-001 in BUG_HISTORY.md). For those four, sbom/<tag>/ is the SBOM; the records were made on 2026-10-28 from each tag's tree, and the scan found what the tree had then (golang.org/x/net 0.61.0 and go-jose/v4 4.1.5, fixed in v1.132.1), so each README says Result: findings. The two files attached to v1.132.1 were scanned on 2026-10-28 03:06 UTC and name one component the scan picked up outside the tree; the committed sbom/v1.132.1/ is a later scan of the same commit without it, and is the record to use.

To verify a release against its record: the commit in sbom/<tag>/README.md must be the tag's (git rev-parse <tag>^{commit}), and where the release has the assets, shasum -a 256 of the downloaded file and of the committed one must agree. To run the scan again for a tag: sbom-record <tag> from the repository's root scans the tag's tree, writes sbom/<tag>/ and commits it. The scanners it runs are named in .agentq-release.json; since the commit that added that file, trivy runs beside the four above, and its report is reports/scanner-0.txt.

Accepted findings and licences, each with its reason, are in .dependency-allowlist.json (vulnerabilities, licences, licence_exceptions); a scanner's own ignore file (osv-scanner.toml, .grype.yaml, .trivyignore) holds its entries where one exists. Each sbom/<tag>/ holds its own osv-scanner.toml, because osv-scanner reads the committed SBOMs as inputs when it scans the whole repository (OpenSSF Scorecard does so): the copy repeats the root's accepted finding and, for a record whose release had findings, names those findings as that release's, so a scan of the current tree does not report a past release's dependencies as the current ones. The record's own reports are untouched by it.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsDebug = false

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
api
oam
auth
db
Package errors provides error handling with lazy stack trace support.
Package errors provides error handling with lazy stack trace support.
examples
internal
fakesql
Package fakesql is a database/sql driver for tests.
Package fakesql is a database/sql driver for tests.
xlsxtest
Package xlsxtest reads back the workbooks utils/xlsx writes, for tests only.
Package xlsxtest reads back the workbooks utils/xlsx writes, for tests only.
messaging
fcm
crypto/x25519
Package x25519 performs X25519 key agreement (RFC 7748) on raw 32-byte keys, as peers exchange them on the wire.
Package x25519 performs X25519 key agreement (RFC 7748) on raw 32-byte keys, as peers exchange them on the wire.
jwt
lv
os
tls
Package tls builds the crypto/tls configuration for the API server and for the process's outbound HTTP and WebSocket clients from a configuration block, so that every hop that terminates or originates TLS in a dxlib process reads its trust the same way and from the same code.
Package tls builds the crypto/tls configuration for the API server and for the process's outbound HTTP and WebSocket clients from a configuration block, so that every hop that terminates or originates TLS in a dxlib process reads its trust the same way and from the same code.
tls/tlstest
Package tlstest builds a throwaway PKI in memory for tests: a root, an intermediate, and leaves with whatever SANs, validity windows and key sizes a test needs, written to PEM files on demand.
Package tlstest builds a throwaway PKI in memory for tests: a root, an intermediate, and leaves with whatever SANs, validity windows and key sizes a test needs, written to PEM files on demand.
xlsx
Package xlsx writes and reads .xlsx workbooks.
Package xlsx writes and reads .xlsx workbooks.
websocket
gorillaws
Package websocket implements the WebSocket protocol defined in RFC 6455.
Package websocket implements the WebSocket protocol defined in RFC 6455.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL