Documentation ¶
Index ¶
- Variables
- func Exists(name string) bool
- func FindClosingBracket(text []byte, openPos int) int
- func FindClosingSemicolon(text []byte, pos int) int
- func GetDLLName(file, apiname, sdkpath string) (string, error)
- func ReadAll(filePath string) ([]byte, error)
- func ReadLines(path string) (lines []string, err error)
- func RegSubMatchToMapString(regEx, s string) (paramsMap map[string]string)
- func RemoveAnnotations(apiPrototype string) string
- func SpaceFieldsJoin(s string) string
- func Standardize(s string) string
- func StandardizeSpaces(s string) string
- func StringInSlice(a string, list []string) bool
- func StripComments(s string) string
- func WalkAllFilesInDir(dir string) ([]string, error)
- func WriteBytesFile(filename string, r io.Reader) (int, error)
- func WriteStrSliceToFile(filename string, data []string) (int, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// RegDllName extracts DLL name from markdown spec.
RegDllName = `req\.dll: (?P<DLL>[\w]+\.dll)`
)
Functions ¶
func FindClosingBracket ¶
func FindClosingSemicolon ¶
func GetDLLName ¶
GetDLLName retrieves the DLL module name that matches an API name.
func RegSubMatchToMapString ¶
func RemoveAnnotations ¶
RemoveAnnotations should only remove function annotations and not function arguments annotations.
func StandardizeSpaces ¶
Group multi-whitespaces to one whitespace.
func StringInSlice ¶
StringInSlice returns whether or not a string exists in a slice
func StripComments ¶
Remove C language comments. Removes both single line and multi-line comments.
func WalkAllFilesInDir ¶
WalkAllFilesInDir returns list of files in directory.
func WriteBytesFile ¶
WriteBytesFile write Bytes to a File.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.