Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mdgo ¶
type Mdgo struct {
// contains filtered or unexported fields
}
func New ¶
New creates a new Mdgo instance with the root directory. Destination (output directory) and input must be set via methods.
func (*Mdgo) Extract ¶
Extract extracts code blocks from the configured input and writes to outputFile The output file extension determines which code type to extract (.go, .js, .css)
func (*Mdgo) InputEmbed ¶
func (m *Mdgo) InputEmbed(r ReaderFile, path string) *Mdgo
InputEmbed sets the input as any ReaderFile implementation and a relative path inside it
type ReaderFile ¶
ReaderFile abstracts a file reader (e.g. embed.FS or any custom provider)
Click to show internal directories.
Click to hide internal directories.