From 6cb9622c0ea38b7f9ae872d948821fc5193dad78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Miri=C4=87?= Date: Thu, 7 Oct 2021 14:52:21 +0200 Subject: [PATCH] Fix rendering of inline Go struct tag example Resolves https://github.com/grafana/k6-docs/pull/346#discussion_r718619021 --- .../translated-guides/en/07 Misc/05 k6 Extensions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/markdown/translated-guides/en/07 Misc/05 k6 Extensions.md b/src/data/markdown/translated-guides/en/07 Misc/05 k6 Extensions.md index c62a01da01..426fc34092 100644 --- a/src/data/markdown/translated-guides/en/07 Misc/05 k6 Extensions.md +++ b/src/data/markdown/translated-guides/en/07 Misc/05 k6 Extensions.md @@ -265,9 +265,9 @@ The k6 Go-JS bridge has a few features we should highlight: - Similarly, Go field names will be converted from Pascal case to Snake case. For example, the struct field `SomeField string` will be accessible in JS as the `some_field` object property. This behavior is configurable with the `js` - struct tag, so this can be changed with - SomeField string `js:"someField"` - or the field can be hidden with `js:"-"`. + struct tag, so this can be changed + with SomeField string `js:"someField"` + or the field can be hidden with `js:"-"`. - Methods with a name prefixed with `X` will be transformed to JS constructors, and will support the `new` operator.