Skip to content

mohankri/goworld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

goworld (Go language Interface to C language)

This repository provides means to access C language interface from Go Programming Language. It's ideal to have plain go language, but porting large legacy code in pure go enviroment can be a huge task and time consuming. In such scenario wrapping legacy c or c++ code under the hood of a go language is an optimal solution.

BUILD goworld

git clone https://github.com/mohankri/goworld

cd go/cppwrap/cppsrc

make

cd ..

make

The above will build dynamic C libaries

cd ../../go/src/main

export GOPATH=$HOME/goworld/go

go build

export LD_LIBRARY_PATH=$GOPATH/cppwrap

run the program ./main

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published