[54] Results

Golang : get the current working directory of a running program

golang executable file-path

Problem :

You are looking for way to get the folder/directory of the running program.

Solution :

Use https://bitbucket.org/kardianos/osext.... read more

Golang : How to stop user from directly running an executable file?

golangqt prevent-application-launching update-program executable-file

There are times when you need to prevent the user from directly executing an executable file, especially if the executable/binary….... read more

Golang : Embed secret text string into binary(executable) file

golang embed-include-data executable-binary-file secret-text-string hex


You want to hide certain plain text string that you plan to embed(include) in your executable or binary file.….... read more

Golang : Frobnicate or tweaking a string example

golang hex embed-include-data executable-binary-file secret-text-string utf8

A simple example of how to frobnicate(tweaking) a string with UTF-8 characters. Useful in obscuring plain text in embedded….... read more

Golang : Get executable name behind process ID example

golang os process-id executable-name syscall


You want to check if a process is actually running and at the same time you want to find….... read more

How to tell if a binary(executable) file or web application is built with Golang?

golang executable binary created-by-golang


How to tell if a binary(executable) file or web application is built with Golang?


Back in the DOS….... read more

Golang : Lock executable to a specific machine with unique hash of the machine

golang unique-machine-hash lock-executable software-license md5


Got a friend that was looking for ways to lock her Golang executable to a specific machine at her….... read more

Golang : Check to see if *File is a file or directory

golang file directory

Sometimes, we need to write codes that is robust and flexible enough to handle different situation. For example, if a….... read more