package
0.0.0-20230729153634-6be9e1e6bfb2
Repository: https://github.com/yinyin/go-literal-code-gen.git
Documentation: pkg.go.dev

# Functions

GenerateGoCodeFile generate code and save to given file path.
LogLiteralCode dump literal code object to log.
NewLiteralEntry create a new instance of LiteralEntry and set properties to default values.
ParseMarkdown parse input file as literal definition in markdown form.

# Constants

MaxHeadingDepth is the max supported depth level of heading.
NotSubWork indicate given entry is not a sub-work.
SubWorkBuilderPrepare indicate given entry is code block for builder prepare.
TextTrapBuilderPrepare is trapping constant for prepare code of builder function.
TextTrapContentCode is optional trapping constant for content code.
TextTrapHeadingCode is the trapping constant string for detecting heading code block.
TranslateAsBuilder set translation mode to builder function.
TranslateAsConst set translation mode to constant.
TranslateAsExplicitNoop set translation mode to explicitly noop.
TranslateAsNoop set translation to no-op.

# Structs

ExternalFilterList is an ExternalFilter implementation to support multiple filters.
LiteralCode represent one literal code module to generate.
LiteralEntry represent one literal entity to generate.
ReplaceResult is thre result of one replace operation.
ReplaceRule represent literal replacing rule for generating builder function.
ReplaceTarget points out matching group and replacement code.

# Interfaces

ExternalFilter define interface for external code generating filter.

# Type aliases

OrderReplaceTarget is a sorting type for ReplaceTarget.
SubWorkType represent type of sub-works.
TranslationModeType represent type of translation mode.