1.6 KiB
Hiddify uses Go, make sure that you have the correct version installed before starting development. You can use the following commands to check your installed version:
$ go version
# example response
go version go1.21.1 darwin/arm64
Working with the Go Code
if you're not interested in building/contributing to the Go code, you can skip this section
The Go code for Hiddify can be found in the libcore folder, as a git submodule and in core repository. The entrypoints for the desktop version are available in the libcore/custom folder and for the mobile version they can be found in the libcore/mobile folder.
For the desktop version, we have to compile the Go code into a C shared library. We are providing a Makefile to generate the C shared libraries for all operating systems. The following Make commands will build libcore and copy the resulting output in libcore/bin:
make windows-amd64make linux-amd64make macos-universal
For the mobile version, we are using the gomobile tools. The following Make commands will build libcore for Android and iOS and copy the resulting output in libcore/bin:
make androidmake ios