Skip to content

Commit

Permalink
Fix rendering of inline Go struct tag example
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Mirić committed Oct 8, 2021
1 parent 3d90b32 commit 6cb9622
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
<code>SomeField string &grave;js:"someField"&grave;</code>
or the field can be hidden with `js:"-"`.
struct tag, so this can be changed
with <CodeInline>SomeField string &grave;js:"someField"&grave;</CodeInline>
or the field can be hidden with <CodeInline>&grave;js:"-"&grave;</CodeInline>.

- Methods with a name prefixed with `X` will be transformed to JS
constructors, and will support the `new` operator.
Expand Down

0 comments on commit 6cb9622

Please sign in to comment.