fix: library descriptions and links (#6518)

Corrected description of available libraries
telegraf-config-update^2
Sergii Kauk 2025-11-07 23:14:55 +01:00 committed by GitHub
parent 1177825f6e
commit 07bfb6f8cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 10 deletions

View File

@ -141,17 +141,19 @@ following libraries are available for loading:
- json: `load("json.star", "json")` provides the functions `json.encode()`, - json: `load("json.star", "json")` provides the functions `json.encode()`,
`json.decode()`, `json.indent()`. See json.star `json.decode()`, `json.indent()`. See json.star
for an example. For more details about the functions, please refer to the for an example. For more details about the functions, please refer to the
[library documentation](https://pkg.go.dev/go.starlark.net/lib/time). [library documentation](https://pkg.go.dev/go.starlark.net/lib/json).
- log: `load("logging.star", "log")` provides the functions `log.debug()`, - log: `load("logging.star", "log")` provides the functions `log.debug()`,
`log.info()`, `log.warn()`, `log.error()`. See `log.info()`, `log.warn()`, `log.error()`. See logging.star` for an example.
logging.star` provides the function - math: `load('math.star', 'math')` provides basic mathematical constants and functions.
[documented in the library](https://pkg.go.dev/go.starlark.net/lib/math). See See math.star for an example. For more details, please refer to the
math.star`. See [library documentation](https://pkg.go.dev/go.starlark.net/lib/math).
time_date.star, - time: `load('time.star', 'time')` provides time-related constants and functions.
time_duration.star and See
time_timestamp.star for examples. For time_date.star,
more details about the functions, please refer to the time_duration.star and
[library documentation](https://pkg.go.dev/go.starlark.net/lib/time). time_timestamp.star for examples. For
more details about the functions, please refer to the
[library documentation](https://pkg.go.dev/go.starlark.net/lib/time).
If you would like to see support for something else here, please open an issue. If you would like to see support for something else here, please open an issue.