package
0.0.1
Repository: https://github.com/unknowns24/mks.git
Documentation: pkg.go.dev

# Functions

Function to add a new configuration before the closing of the Config structure in the source file.
Function to add a new configuration before the closing of the Config structure in the source file.
Function to add a new configuration before the closing of the Config structure in the source file.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
this function checks if a certain package name exists in a file (golang file).
this function checks if is a valid go file.
No description provided by the author
Copy file or directory (with contents) to new location.
Create files from templates wich only needs to changes %%PACKAGE_NAME%%.
Create files from templates that has many placeholders to replace.
Download file from url to destination.
Function to extend file content by adding new content at the bottom of the file.
ExtractImports extracts import statements from Go code.
ExtractPackageLine extracts the line containing the "package" declaration from Go code.
Check file or directory exists.
this function checks if a certain function exists in a file (golang file).
No description provided by the author
Get this executable path.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
chech if is an github url (package style like github.com/unknowns24/mks).
chech if is an url or not (accepts http and https).
No description provided by the author
No description provided by the author
No description provided by the author
Make temporary directory with random name and return path.
move file or directory (with contents) to new location.
No description provided by the author
No description provided by the author
Read file content and return it.
Read file content, replace placeholder with its values in memory and returns modified content.
RemovePackageAndImports removes the package declaration and all import statements from Go code.
No description provided by the author
No description provided by the author
No description provided by the author
Unzip file to destination.
This functions will return a boolean true if all dependencies are installed on templates addons folder or false if at least one of that dependencies are missing, the second parameter will be the slice with the missing ones.
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author