Skip to content

Commit

Permalink
Rename go module to the fork name to use it in libs
Browse files Browse the repository at this point in the history
  • Loading branch information
yalegko committed Aug 6, 2020
1 parent 28212ff commit f599c14
Show file tree
Hide file tree
Showing 17 changed files with 42 additions and 28 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@

[![Build status](https://ci.appveyor.com/api/projects/status/qr0u2sf7q43us9fj?svg=true)](https://ci.appveyor.com/project/jacobsantos/go-ole-jgs28)
[![Build Status](https://travis-ci.org/go-ole/go-ole.svg?branch=master)](https://travis-ci.org/go-ole/go-ole)
[![GoDoc](https://godoc.org/github.com/go-ole/go-ole?status.svg)](https://godoc.org/github.com/go-ole/go-ole)
[![GoDoc](https://godoc.org/github.com/bi-zone/go-ole?status.svg)](https://godoc.org/github.com/bi-zone/go-ole)

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

By Yasuhiro Matsumoto.

## Fork Features
Fork contains the following bug fixes until them will be merged to the upstream:
- https://github.com/go-ole/go-ole/pull/199
- https://github.com/go-ole/go-ole/pull/201

Go module is renamed to the fork name to be able to use it in libs without replace trick.

## Install

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

```
go get github.com/go-ole/go-ole
go get github.com/bi-zone/go-ole
cd /path/to/go-ole/
go test
Expand Down
4 changes: 2 additions & 2 deletions _example/excel/excel.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package main
import (
"time"

ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
ole "github.com/bi-zone/go-ole"
"github.com/bi-zone/go-ole/oleutil"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/excel2/excel.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"log"
"os"

ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
ole "github.com/bi-zone/go-ole"
"github.com/bi-zone/go-ole/oleutil"
)

func writeExample(excel, workbooks *ole.IDispatch, filepath string) {
Expand Down
4 changes: 2 additions & 2 deletions _example/ie/ie.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package main
import (
"time"

ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
ole "github.com/bi-zone/go-ole"
"github.com/bi-zone/go-ole/oleutil"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/itunes/itunes.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"strings"

ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
ole "github.com/bi-zone/go-ole"
"github.com/bi-zone/go-ole/oleutil"
"github.com/gonuts/commander"
)

Expand Down
4 changes: 2 additions & 2 deletions _example/libreoffice/libreoffice.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ import (
"fmt"
"log"

ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
ole "github.com/bi-zone/go-ole"
"github.com/bi-zone/go-ole/oleutil"
)

func checkError(err error, msg string) {
Expand Down
4 changes: 2 additions & 2 deletions _example/mediaplayer/mediaplayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"log"

ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
ole "github.com/bi-zone/go-ole"
"github.com/bi-zone/go-ole/oleutil"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/msagent/msagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package main
import (
"time"

ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
ole "github.com/bi-zone/go-ole"
"github.com/bi-zone/go-ole/oleutil"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/msxml/rssreader.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"time"

ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
ole "github.com/bi-zone/go-ole"
"github.com/bi-zone/go-ole/oleutil"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/outlook/outlook.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ package main
import (
"fmt"

ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
ole "github.com/bi-zone/go-ole"
"github.com/bi-zone/go-ole/oleutil"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions _example/winsock/winsock.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"syscall"
"unsafe"

ole "github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
ole "github.com/bi-zone/go-ole"
"github.com/bi-zone/go-ole/oleutil"
)

type EventReceiver struct {
Expand Down
7 changes: 5 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module github.com/go-ole/go-ole
module github.com/bi-zone/go-ole

go 1.12

require golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3
require (
github.com/gonuts/commander v0.1.0 // indirect
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3
)
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
github.com/gonuts/commander v0.1.0 h1:EcDTiVw9oAVORFjQOEOuHQqcl6OXMyTgELocTq6zJ0I=
github.com/gonuts/commander v0.1.0/go.mod h1:qkb5mSlcWodYgo7vs8ulLnXhfinhZsZcm6+H/z1JjgY=
github.com/gonuts/flag v0.1.0 h1:fqMv/MZ+oNGu0i9gp0/IQ/ZaPIDoAZBOBaJoV7viCWM=
github.com/gonuts/flag v0.1.0/go.mod h1:ZTmTGtrSPejTo/SRNhCqwLTmiAgyBdCkLYhHrAoBdz4=
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3 h1:7TYNF4UdlohbFwpNH04CoPMp1cHUZgO1Ebq5r2hIjfo=
golang.org/x/sys v0.0.0-20190916202348-b4ddaad3f8a3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
2 changes: 1 addition & 1 deletion oleutil/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"unsafe"

ole "github.com/go-ole/go-ole"
ole "github.com/bi-zone/go-ole"
)

type stdDispatch struct {
Expand Down
2 changes: 1 addition & 1 deletion oleutil/connection_func.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package oleutil

import ole "github.com/go-ole/go-ole"
import ole "github.com/bi-zone/go-ole"

// ConnectObject creates a connection point between two services for communication.
func ConnectObject(disp *ole.IDispatch, iid *ole.GUID, idisp interface{}) (uint32, error) {
Expand Down
2 changes: 1 addition & 1 deletion oleutil/connection_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"syscall"
"unsafe"

ole "github.com/go-ole/go-ole"
ole "github.com/bi-zone/go-ole"
)

// ConnectObject creates a connection point between two services for communication.
Expand Down
2 changes: 1 addition & 1 deletion oleutil/oleutil.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package oleutil

import ole "github.com/go-ole/go-ole"
import ole "github.com/bi-zone/go-ole"

// ClassIDFrom retrieves class ID whether given is program ID or application string.
func ClassIDFrom(programID string) (classID *ole.GUID, err error) {
Expand Down

0 comments on commit f599c14

Please sign in to comment.