Skip to content
win32 ole implementation for golang
Branch: master
Clone or download
Latest commit 97b6244 Feb 26, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
_example Fix Feb 26, 2019
build Update AppVeyor config Oct 6, 2017
data add screenshot Jan 21, 2011
oleutil add oleutil.PutPropertyRef, oleutil.MustPutPropertyRef Nov 10, 2017
.travis.yml 1.12 still not on travis Feb 26, 2019
ChangeLog.md
LICENSE
README.md Fix README.md header formatting Feb 12, 2018
appveyor.yml
com.go
com_func.go fix build Nov 22, 2018
com_func_test.go * Use lowercase terms in batch file. Aug 7, 2015
com_test.go fix Fatalf Jun 24, 2018
connect.go Spelling and clarity in documentation. May 15, 2015
connect_test.go
connect_windows_test.go
constants.go
error.go Add documentation and make structures and documentation available out… May 13, 2015
error_func.go * Use lowercase terms in batch file. Aug 7, 2015
error_windows.go
go.mod Re-generate go.mod Feb 26, 2019
guid.go Added native GUID string parsing Jun 24, 2016
guid_test.go
iconnectionpoint.go
iconnectionpoint_func.go Move functions and allow for functions to exist outside windows. Simp… May 14, 2015
iconnectionpoint_windows.go
iconnectionpointcontainer.go
iconnectionpointcontainer_func.go
iconnectionpointcontainer_windows.go Move functions and allow for functions to exist outside windows. Simp… May 14, 2015
idispatch.go Replicate some oleutil helper functions to ole main package. Mostly e… Oct 29, 2015
idispatch_func.go Move functions and allow for functions to exist outside windows. Simp… May 14, 2015
idispatch_windows.go add big.Int Jun 25, 2018
idispatch_windows_test.go * Fix GUID for Scalar Test object Class ID. Nov 2, 2015
ienumvariant.go Implement using static class init. Aug 20, 2015
ienumvariant_func.go
ienumvariant_test.go
ienumvariant_windows.go
iinspectable.go
iinspectable_func.go
iinspectable_windows.go
iprovideclassinfo.go
iprovideclassinfo_func.go
iprovideclassinfo_windows.go Move functions and allow for functions to exist outside windows. Simp… May 14, 2015
itypeinfo.go
itypeinfo_func.go
itypeinfo_windows.go Move functions and allow for functions to exist outside windows. Simp… May 14, 2015
iunknown.go
iunknown_func.go
iunknown_windows.go * Fix Enum retrieval. Oct 29, 2015
iunknown_windows_test.go Release iunknown object. Sep 16, 2015
ole.go add WCode and SCODE for EXCEPINFO Jul 12, 2017
safearray.go
safearray_func.go
safearray_test.go Fix for #172 Dec 14, 2018
safearray_windows.go Fix for #172 Dec 14, 2018
safearrayconversion.go Fix for #172 Dec 14, 2018
safearrayconversion_test.go Move functions and allow for functions to exist outside windows. Simp… May 14, 2015
safearrayslices.go add []string{} variant Sep 30, 2015
utility.go Need to move ClassIDFrom to make it available to linux and Windows. Oct 29, 2015
variables.go
variant.go
variant_386.go fix build Nov 22, 2018
variant_amd64.go fix build Nov 22, 2018
variant_date_386.go
variant_date_amd64.go fix build Nov 22, 2018
variant_ppc64le.go Support compilation on linux/ppc64le Feb 6, 2018
variant_s390x.go
vt_string.go Add stringer for VT Feb 18, 2015
winrt.go
winrt_doc.go * Use 64-bit go to compile 386 version of go tools. Aug 8, 2015

README.md

Go OLE

Build status Build Status GoDoc

Go bindings for Windows COM using shared libraries instead of cgo.

By Yasuhiro Matsumoto.

Install

To experiment with go-ole, you can just compile and run the example program:

go get github.com/go-ole/go-ole
cd /path/to/go-ole/
go test

cd /path/to/go-ole/example/excel
go run excel.go

Continuous Integration

Continuous integration configuration has been added for both Travis-CI and AppVeyor. You will have to add these to your own account for your fork in order for it to run.

Travis-CI

Travis-CI was added to check builds on Linux to ensure that go get works when cross building. Currently, Travis-CI is not used to test cross-building, but this may be changed in the future. It is also not currently possible to test the library on Linux, since COM API is specific to Windows and it is not currently possible to run a COM server on Linux or even connect to a remote COM server.

AppVeyor

AppVeyor is used to build on Windows using the (in-development) test COM server. It is currently only used to test the build and ensure that the code works on Windows. It will be used to register a COM server and then run the test cases based on the test COM server.

The tests currently do run and do pass and this should be maintained with commits.

Versioning

Go OLE uses semantic versioning for version numbers, which is similar to the version contract of the Go language. Which means that the major version will always maintain backwards compatibility with minor versions. Minor versions will only add new additions and changes. Fixes will always be in patch.

This contract should allow you to upgrade to new minor and patch versions without breakage or modifications to your existing code. Leave a ticket, if there is breakage, so that it could be fixed.

LICENSE

Under the MIT License: http://mattn.mit-license.org/2013

You can’t perform that action at this time.