You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21-15Lines changed: 21 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This repository demonstrates how you can call IBM MQ from applications written in the Go language.
4
4
5
-
> **NOTICE**: Please ensure that you use a dependency management tool such as [dep](https://github.com/golang/dep) or [Glide](http://glide.sh/), and add a specific version dependency. The current content has been marked as version 1.0.0, and a new version with breaking changes will be released soon. By using a dependency manager, you can continue to use the old version if you want to.
5
+
> **NOTICE**: Please ensure that you use a dependency management tool such as [dep](https://github.com/golang/dep) or [Glide](http://glide.sh/), and add a specific version dependency.
6
6
7
7
This repository previously contained sample programs that exported MQ statistics to some monitoring packages. These have now been moved to a new [GitHub repository called mq-metric-samples](https://github.com/ibm-messaging/mq-metric-samples).
8
8
@@ -21,6 +21,9 @@ The intention is to give an API that is more natural for Go programmers than the
21
21
22
22
A short program in the samples/mqitest directory gives an example of using this interface, to put and get messages and to subscribe to a topic.
23
23
24
+
The mqmetric directory contains functions to help monitoring programs access MQ status and
25
+
statistics. This package is not needed for general application programs.
26
+
24
27
Feedback on the utility of this package, thoughts about whether it should be changed or extended are welcomed.
25
28
26
29
## Using the package
@@ -41,28 +44,31 @@ If you are unfamiliar with Go, the following steps can help create a working env
41
44
42
45
* Set environment variables. Based on the previous lines,
43
46
44
-
```export GOROOT=/usr/lib/golang```
45
-
46
-
```export GOPATH=$HOME/gowork```
47
+
```
48
+
export GOROOT=/usr/lib/golang
49
+
export GOPATH=$HOME/gowork
50
+
```
47
51
48
52
* If using a version of Go from after 2017, you must set environment variables to permit some compile/link flags. This is due to a security fix in the compiler.
49
53
50
-
```export CGO_LDFLAGS_ALLOW="-Wl,-rpath.*"```
54
+
```
55
+
export CGO_LDFLAGS_ALLOW="-Wl,-rpath.*"
56
+
```
51
57
52
58
* Install the git client
53
59
54
60
### Windows
55
61
56
62
* Install the Go runtime and compiler. On Windows, the common directory is `c:\Go`
57
63
* Ensure you have a gcc-based compiler, for example from the Cygwin distribution. I use the mingw variation, to ensure compiled code can be used on systems without Cygwin installed
58
-
* Create a working directory. For example, ```mkdir c:\Gowork```
64
+
* Create a working directory. For example, `mkdir c:\Gowork`
59
65
* Set environment variables. Based on the previous lines,
60
66
61
-
```set GOROOT=c:\Go```
62
-
63
-
```set GOPATH=c:\Gowork```
64
-
65
-
```set CC=x86_64-w64-mingw32-gcc.exe```
67
+
```
68
+
set GOROOT=c:\Go
69
+
set GOPATH=c:\Gowork
70
+
set CC=x86_64-w64-mingw32-gcc.exe
71
+
```
66
72
67
73
* The `CGO_LDFLAGS_ALLOW` variable is not needed on Windows
68
74
* Install the git client
@@ -73,15 +79,15 @@ If you are unfamiliar with Go, the following steps can help create a working env
73
79
* Change directory to the workspace you created earlier. (`cd $GOPATH`)
74
80
* Use git to get a copy of the MQ components into a new directory in the workspace.
* Follow the instructions in the [mq-metric-samples repository](https://github.com/ibm-messaging/mq-metric-samples) to compile the sample programs you are interested in.
0 commit comments