Documentation Index
Fetch the complete documentation index at: https://cdktn.io/docs/llms.txt
Use this file to discover all available pages before exploring further.
Fragments of a concatenated string containing stringified Tokens.
Initializers
import "github.com/open-constructs/cdk-terrain-go/cdktn"
cdktn.NewTokenizedStringFragments() TokenizedStringFragments
Methods
| Name | Description |
|---|
AddEscape | No description. |
AddIntrinsic | Adds an intrinsic fragment. |
AddLiteral | Adds a literal fragment. |
AddToken | Adds a token fragment. |
Concat | No description. |
Join | Combine the string fragments using the given joiner. |
MapTokens | Apply a transformation function to all tokens in the string. |
AddEscape
func AddEscape(kind *string)
kindRequired
AddIntrinsic
func AddIntrinsic(value interface{})
Adds an intrinsic fragment.
valueRequired
the intrinsic value to add.
AddLiteral
func AddLiteral(lit interface{})
Adds a literal fragment.
litRequired
the literal to add.
AddToken
func AddToken(token IResolvable)
Adds a token fragment.
tokenRequired
the token to add.
Concat
func Concat(other TokenizedStringFragments)
otherRequired
Join
func Join(concat IFragmentConcatenator) interface{}
Combine the string fragments using the given joiner.
If there are any
concatRequired
MapTokens
func MapTokens(context IResolveContext) TokenizedStringFragments
Apply a transformation function to all tokens in the string.
contextRequired
Properties
| Name | Type | Description |
|---|
Escapes | *[]IResolvable | Return all escape fragments from this string. |
FirstValue | interface{} | Returns the first value. |
Intrinsic | *[]IResolvable | Return all intrinsic fragments from this string. |
Length | *f64 | Returns the number of fragments. |
Literals | *[]IResolvable | Return all literals from this string. |
Tokens | *[]IResolvable | Return all Tokens from this string. |
FirstToken | IResolvable | Returns the first token. |
EscapesRequired
func Escapes() *[]IResolvable
Return all escape fragments from this string.
FirstValueRequired
func FirstValue() interface{}
Returns the first value.
IntrinsicRequired
func Intrinsic() *[]IResolvable
Return all intrinsic fragments from this string.
LengthRequired
Returns the number of fragments.
LiteralsRequired
func Literals() *[]IResolvable
Return all literals from this string.
TokensRequired
func Tokens() *[]IResolvable
Return all Tokens from this string.
FirstTokenOptional
func FirstToken() IResolvable
Returns the first token.