Documentation ¶
Overview ¶
Package for internal utilities.
Index ¶
- Variables
- func BoldCodeTerminal(lang string, code string) string
- func Deindent(s string) string
- func Dewhitespace(s string) string
- func FirstLine(s string) string
- func GetFilePathsByExtension(ext string, workDir string) ([]string, error)
- func GetVHDLFilePaths() []string
- func HdlGenArgs(line []byte) []string
- func IsIgnoredVHDLFile(filepath string) bool
- func IsSingleLine(s string) bool
- func IsTestbench(name string) bool
- func IsTooGeneralPath(path string) bool
- func IsValidLang(lang string) bool
- func VHDLDecomment(s string) string
- func VHDLDeindentDecomment(s string) string
- func VHDLHTMLBold(s string) string
- func VHDLTerminalBold(s string) string
- func ValidLangs() [1]string
Constants ¶
This section is empty.
Variables ¶
View Source
var VHDLKeywords map[string]bool = map[string]bool{ "alias": true, "array": true, "assert": true, "begin": true, "boolean": true, "buffer": true, "constant": true, "downto": true, "end": true, "entity": true, "failure": true, "false": true, "function": true, "generic": true, "impure": true, "in": true, "inout": true, "integer": true, "is": true, "natural": true, "of": true, "others": true, "out": true, "package": true, "port": true, "positive": true, "procedure": true, "protected": true, "pure": true, "range": true, "real": true, "real_vector": true, "record": true, "report": true, "return": true, "severity": true, "shared": true, "signal": true, "signed": true, "std_logic": true, "std_logic_vector": true, "string": true, "subtype": true, "time": true, "time_vector": true, "to": true, "true": true, "type": true, "unsigned": true, "variable": true, }
Functions ¶
func BoldCodeTerminal ¶
func Dewhitespace ¶
func GetFilePathsByExtension ¶
func GetVHDLFilePaths ¶
func GetVHDLFilePaths() []string
func HdlGenArgs ¶
hdlGenArgs parses line containing 'hdl:gen' and returns its arguments.
func IsIgnoredVHDLFile ¶
IsIgnoredVHDLFile returns true if given file should be ignored. For example, it may be a Xilinx encrypted file. In such case there is no point in analyzing its content.
func IsSingleLine ¶
func IsTestbench ¶
func IsTooGeneralPath ¶
func IsValidLang ¶
func VHDLDecomment ¶
VHDLDecomment assumes that string has already passed Deindent() process.
func VHDLDeindentDecomment ¶
func VHDLHTMLBold ¶
func VHDLTerminalBold ¶
func ValidLangs ¶
func ValidLangs() [1]string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.