Skip to content

Golang (CGo) bindings for AltDSS/DSS C-API. Tries to mimic the organization of the OpenDSS COM classes, within the scope of Go's language features.

License

Notifications You must be signed in to change notification settings

dss-extensions/AltDSS-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AltDSS-Go

Golang (CGo) bindings for AltDSS/DSS C-API. Tries to mimic the organization of the official OpenDSS COM classes, within the scope of Go's language features.

This is a new project, initially targeting Linux. Other platforms will be added later. There is no platform-specific code nor dependencies, but due to use of CGo, building instructions are specific to each platform.

Tentative instructions

While proper configuration and scripts are not in place:

git clone https://github.com/dss-extensions/electricdss-tst # for sample files
git clone https://github.com/dss-extensions/altdss-go
cd altdss-go
wget -qO- https://github.com/dss-extensions/dss_capi/releases/download/0.14.3/dss_capi_0.14.3_linux_x64.tar.gz | tar zxv
export CPATH=`pwd`/dss_capi/include/
mv dss_capi/lib/linux_x64/*.so .
export LIBRARY_PATH=`pwd`
go build ./altdss # this takes some time
go build -o . ./examples/simple.go
./simple

About

Golang (CGo) bindings for AltDSS/DSS C-API. Tries to mimic the organization of the OpenDSS COM classes, within the scope of Go's language features.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages