Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOsImport ¶
AddOsImport ensures "os" is in the imports if os.Getenv is used
func InjectDevURIs ¶
InjectDevURIs adds dev endpoint options when HYPHEN_DEV=true
func IsCompleteProgram ¶
IsCompleteProgram checks if code has package main and func main
func ReplaceCredentials ¶
ReplaceCredentials replaces placeholder strings with os.Getenv calls
Types ¶
type CodeBlock ¶
type CodeBlock struct {
Code string
Line int // Line number in source for debugging
Section string // README section name (if applicable)
}
CodeBlock represents a Go code block extracted from a markdown file
func ExtractGoCodeBlocks ¶
ExtractGoCodeBlocks parses a markdown file and returns all ```go blocks
Click to show internal directories.
Click to hide internal directories.