diff --git a/docs/eng/scenario/functions.md b/docs/eng/scenario/functions.md index 287f17503..3e0026b3e 100644 --- a/docs/eng/scenario/functions.md +++ b/docs/eng/scenario/functions.md @@ -47,27 +47,53 @@ functions can be found at [Go template functions](https://pkg.go.dev/text/templa ### uuid -`{{ uuid }}` +```gotemplate +{% raw %}{{ uuid }}{% endraw %} +``` ### randInt -`{{ randInt }}` +no arguments +```gotemplate +{% raw %}{{ randInt }}{% endraw %} +``` -`{{ randInt 10 }}` +1 argument +```gotemplate +{% raw %}{{ randInt 10 }}{% endraw %} +``` -`{{ randInt 100 200 }}` +2 arguments +```gotemplate +{% raw %}{{ randInt 100 200 }}{% endraw %} +``` -`{{ randInt 200 .source.global.max_rand_int }}` +2 arguments using source variable +```gotemplate +{% raw %}{{ randInt 200 .source.global.max_rand_int }}{% endraw %} +``` ### randString -`{{ randString }}` +no arguments +```gotemplate +{% raw %}{{ randString }}{% endraw %} +``` -`{{ randString 10 }}` +1 argument +```gotemplate +{% raw %}{{ randString 10 }}{% endraw %} +``` -`{{ randString 10 abcde }}` +2 arguments +```gotemplate +{% raw %}{{ randString 10 abcde }}{% endraw %} +``` -`{{ randString 20 .source.global.letters }}` +2 arguments using source variable +```gotemplate +{% raw %}{{ randString 20 .source.global.letters }}{% endraw %} +``` ## In the Data Source - variables diff --git a/docs/rus/scenario/functions.md b/docs/rus/scenario/functions.md index 8a28a3406..86fb38ef9 100644 --- a/docs/rus/scenario/functions.md +++ b/docs/rus/scenario/functions.md @@ -49,27 +49,53 @@ https://pkg.go.dev/text/template#hdr-Functions ### uuid -`{{ uuid }}` +```gotemplate +{% raw %}{{ uuid }}{% endraw %} +``` ### randInt -`{{ randInt }}` +без аргументов +```gotemplate +{% raw %}{{ randInt }}{% endraw %} +``` -`{{ randInt 10 }}` +1 аргумент +```gotemplate +{% raw %}{{ randInt 10 }}{% endraw %} +``` -`{{ randInt 100 200 }}` +2 аргумента +```gotemplate +{% raw %}{{ randInt 100 200 }}{% endraw %} +``` -`{{ randInt 200 .source.global.max_rand_int }}` +2 аргумента используем из источника переменных +```gotemplate +{% raw %}{{ randInt 200 .source.global.max_rand_int }}{% endraw %} +``` ### randString -`{{ randString }}` +без аргументов +```gotemplate +{% raw %}{{ randString }}{% endraw %} +``` -`{{ randString 10 }}` +1 аргумент +```gotemplate +{% raw %}{{ randString 10 }}{% endraw %} +``` -`{{ randString 10 abcde }}` +2 аргумента +```gotemplate +{% raw %}{{ randString 10 abcde }}{% endraw %} +``` -`{{ randString 20 .source.global.letters }}` +2 аргумента используем из источника переменных +```gotemplate +{% raw %}{{ randString 20 .source.global.letters }}{% endraw %} +``` ## В источник данных - variables