Skip to content

Commit 07bfb6f

Browse files
authored
fix: library descriptions and links (#6518)
Corrected description of available libraries
1 parent 1177825 commit 07bfb6f

File tree

1 file changed

+12
-10
lines changed
  • content/telegraf/v1/processor-plugins/starlark

1 file changed

+12
-10
lines changed

content/telegraf/v1/processor-plugins/starlark/_index.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,19 @@ following libraries are available for loading:
141141
- json: `load("json.star", "json")` provides the functions `json.encode()`,
142142
`json.decode()`, `json.indent()`. See json.star
143143
for an example. For more details about the functions, please refer to the
144-
[library documentation](https://pkg.go.dev/go.starlark.net/lib/time).
144+
[library documentation](https://pkg.go.dev/go.starlark.net/lib/json).
145145
- log: `load("logging.star", "log")` provides the functions `log.debug()`,
146-
`log.info()`, `log.warn()`, `log.error()`. See
147-
logging.star` provides the function
148-
[documented in the library](https://pkg.go.dev/go.starlark.net/lib/math). See
149-
math.star`. See
150-
time_date.star,
151-
time_duration.star and
152-
time_timestamp.star for examples. For
153-
more details about the functions, please refer to the
154-
[library documentation](https://pkg.go.dev/go.starlark.net/lib/time).
146+
`log.info()`, `log.warn()`, `log.error()`. See logging.star` for an example.
147+
- math: `load('math.star', 'math')` provides basic mathematical constants and functions.
148+
See math.star for an example. For more details, please refer to the
149+
[library documentation](https://pkg.go.dev/go.starlark.net/lib/math).
150+
- time: `load('time.star', 'time')` provides time-related constants and functions.
151+
See
152+
time_date.star,
153+
time_duration.star and
154+
time_timestamp.star for examples. For
155+
more details about the functions, please refer to the
156+
[library documentation](https://pkg.go.dev/go.starlark.net/lib/time).
155157

156158
If you would like to see support for something else here, please open an issue.
157159

0 commit comments

Comments
 (0)