GoLang Useful functions – package with all source code – US$ 35,00
After paying, please send an email to evandro@definitiva.com.br in order to receive this digital product above.
If you want to make a Wire Transfer, please send an email to evandro@definitiva.com.br and I will send my bank info
getexternalIP | return the External IP Address |
getlocalIP | return the Local Network IP Address of the machine |
dns | returns the dns address |
dhcpserver | returns the dhpserver address |
gateway | returns the gateway address |
hostname | returns the dhpserver address |
username | returns the username logged in |
diskdata | return the disks data – total size, model, SSD or not SSD, free space |
raminstalled | ram installed |
ramavailable | ram available |
processorname | Name of processor |
processorcores | number of cores of the processor |
cpuusage | cpu usage – for example returns 88% – 88% of cpu is in use at the moment |
networkdata | network board speed, cable connected, wifi connected, wifi networ name in use and speed |
service_is_active | return is service is active – for instance – spool is active ? vnc service is active ? |
software_is_installed | return if a software is installed – for instance – Excel is installed ? |
windowsisupdated | return true if all windows updates are installed |
windowsversion | returns the windows version |
log | log text to file |
todaydate | return the today date |
timenow | return the time now |
daysbetween | return the number of days between two dates |
copyfile | copy one file to another name / location |
deletefile | delete a file |
fileexist | return true if a file exist |
arraytostring | convert array to string |
takeoffhtml | take off html codes from a text |
sendmail | send a mail with body, subject, and optional attachments, cc and bcc |
istextin | return if a some text is inside a bigger text – works with text with one line,text with multi lines and in arrays |
repeatedtext | return is some text or part of text is repeated |
savetextinfile | save a string or text in a file |
insertifnotexist | insert a text in a file, if the text does not exist yet |
replacetextinfile | replace a text in a file(s) |
removeblanklines | remove blank lines in a text |
takeoffline | especify a text and the line with the text will be removed from the file |
scoreprocessor | returns a number who indicates the compared scored of the processor – usefull to know if processor is fast or not |
scanport | return if a TCP or UDP port is opened |
unzip | unzip a file (uncompress a file) |
zip | zip a file (compress a file) |
searchiteminlist | search an item in a list |
searchiteminarray | search an item in an array |
istextinfile | return if a text is in a file |
getlinefile | specify a word or text, and it will return the line(s) from file |
getfullfile | get the full text file content to a string |
showfile | print the file contents |
getlinestring | specify a word or text, and it will return the line(s) from string |
sortlines | sort lines |
downloadfile | download a file from a www or ftp address |
uploadfile | upload file to a ftp server |
filesize | return the file size |
filedate | return the file date |
deletedirectory | delete a directory |
createdirectory | create a directory |
directoryexists | return true if a directory exist |
removespaces | remove spaces from begin and/or end of strings |
GetStringInBetween | for instance , usefull to get the text between <title> and </title> has a lot of another uses – to scrap files, etc |
getfirstpart | get first part – for instance text content is “John^Julius^Brendon” getfirstpart(text, “^”) returns John |
getlastpart | get last part – for instance text content is “John^Julius^Brendon” getlastpart(text, “^”) returns Brendon |
getresult | for instance text: USERDOMAIN=company1 NUMBER_OF_PROCESSORS=16 USERNAME=Anna getresult(“NUMBER_OF_PROCESSORS”) will return 16 |
convertfloattostring | convert float to string |
convertstringtofloat | convert string to float |
convertstringtoint | convert string to int |
convertstringtoint64 | convert string to int64 |
convertinttostring | convert int to string |
converteint64parastring | convert int64 to string |
getuptime | return the uptime |
lastboot | return the last boot time |
replacetext | replacetext(text,”JOHN”,”JOAO) replaces John by Joao |
takeofftext | takeoff(text,”JOHN”) takeoff all the JOHN occurrences in the text |
anykey | press any key to continue |
inputfromkeyboard | shows a message, wait for the user type the response, check if the response is valid |
justpointandnumbers | returns just the point and numbers from a text |
justnumbersandletters | returns just the numbers and letters from a text |
formatteddatetime | returns the date and time in a formatted way – for instance YYYY/MM/DD HH:MM |
formattedtime | returns the in a formatted way – for instance HH:MM |
bytesdormatted | returns a formatted value in KB, MB, GB, TB, PB for instance – 100000000 returns 100 MB |
appendfile | append a text to the end of a file (creates the file if the file does not exist) |
runcommand | run a shell comand |
runcommandresult | run a shell command and return the result value for instance: runcommandresult(“cmd”, “wmic nicconfig get DNSServerSearchOrder”) |
capturescreen | capture the screen and save to file |
ping | ping some address and return true or false |
sleep | sleep some seconds |
endprogram | end the golang program |
Functions are in English and Portuguese
The functions are very well documented inside the golang program you will receive, but we also offer support in how to use the functions
If you want the functions in your language, we can provide to you.
If you want a new function or a new software, we can develop for you.
Also available Golang programming lessons and personalized programming lessions.