Skip to content

Commit 9d9d210

Browse files
committed
Updated to a more recent version of Go.
1 parent 1b14ed9 commit 9d9d210

File tree

2 files changed

+45
-40
lines changed

2 files changed

+45
-40
lines changed

README.md

+35-35
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
## About
1313

1414
The executable built by this project is intended to:
15+
1516
* communicate via messages with BEAM (Erlang language family) clients
1617
* to do so with messages created by [midilib](https://github.com/erlsci/midilib)
1718
* to be controlled by a `gen_server` (e.g., see [undermidi go server](https://github.com/ut-proj/undermidi/blob/release/0.2.x/src/undermidi/supervisor.lfe))
@@ -22,72 +23,72 @@ The executable built by this project is intended to:
2223
A typical execution looks like this:
2324

2425
```shell
25-
$ ./bin/midiserver -d -l warn -p exec
26+
./bin/midiserver -d -l warn -p exec
2627
```
2728

2829
You can use it to test your MIDI setup:
2930

3031
```shell
31-
$ ./bin/midiserver list-devices
32-
$ ./bin/midiserver example 0 0
32+
./bin/midiserver list-devices
33+
./bin/midiserver example 0 0
3334
```
3435

3536
Full usage:
3637

3738
```shell
38-
$ ./bin/midiserver -h
39+
./bin/midiserver -h
3940
```
4041

4142
```text
4243
Usage: ./bin/midiserver [flags] [commands] [args]
4344
4445
Flags:
4546
46-
-d Daemonise midiserver; this disables the text parser; short-form flag
47+
-d Daemonise midiserver; this disables the text parser; short-form flag
4748
-daemon
48-
Daemonise midiserver; this disables the text parser
49+
Daemonise midiserver; this disables the text parser
4950
-epmd-host string
50-
Set hostname of the epmd to use (default "localhost")
51+
Set hostname of the epmd to use (default "localhost")
5152
-epmd-port int
52-
Set port for the epmd to use (default 4369)
53+
Set port for the epmd to use (default 4369)
5354
-ergo.norecover
54-
disable panic catching
55+
disable panic catching
5556
-ergo.trace
56-
enable extended debug info
57+
enable extended debug info
5758
-i int
58-
This needs to be a valid ID for a MIDI device capable of receiving
59-
MIDI data; for a list of valid IDs be sure to run the 'list-devices'
60-
command; short-form flag (default -1)
59+
This needs to be a valid ID for a MIDI device capable of receiving
60+
MIDI data; for a list of valid IDs be sure to run the 'list-devices'
61+
command; short-form flag (default -1)
6162
-l string
62-
Set the logging level; short-form flag (default "warn")
63+
Set the logging level; short-form flag (default "warn")
6364
-log-reportcaller
64-
Indicate whether the log lines contain the report caller
65+
Indicate whether the log lines contain the report caller
6566
-loglevel string
66-
Set the logging level (default "warn")
67+
Set the logging level (default "warn")
6768
-midi-in int
68-
This needs to be a valid ID for a MIDI device capable of receiving
69-
MIDI data; for a list of valid IDs be sure to run the 'list-devices'
70-
command (default -1)
69+
This needs to be a valid ID for a MIDI device capable of receiving
70+
MIDI data; for a list of valid IDs be sure to run the 'list-devices'
71+
command (default -1)
7172
-n string
72-
Set the Erlang node name for remote communications; short-form flag
73+
Set the Erlang node name for remote communications; short-form flag
7374
-p string
74-
Set the parser to user for commands and data. Legal values are:
75-
[exec, port, text]. Note that setting to 'text' disables
76-
daemonisation and setting any of the other parsers automatically
77-
enables daemonisation; short-form flag (default "text")
75+
Set the parser to user for commands and data. Legal values are:
76+
[exec, port, text]. Note that setting to 'text' disables
77+
daemonisation and setting any of the other parsers automatically
78+
enables daemonisation; short-form flag (default "text")
7879
-parser string
79-
Set the parser to user for commands and data. Legal values are:
80-
[exec, port, text]. Note that setting to 'text' disables
81-
daemonisation and setting any of the other parsers automatically
82-
enables daemonisation (default "text")
83-
-r Indicate whether the log lines contain the report caller; short-form flag
80+
Set the parser to user for commands and data. Legal values are:
81+
[exec, port, text]. Note that setting to 'text' disables
82+
daemonisation and setting any of the other parsers automatically
83+
enables daemonisation (default "text")
84+
-r Indicate whether the log lines contain the report caller; short-form flag
8485
-remote-module string
85-
Set the Erlang module for remote communications
86+
Set the Erlang module for remote communications
8687
-remote-node string
87-
Set the Erlang node name for remote communications
88-
-v Display version/build info and exit; short-form flag
88+
Set the Erlang node name for remote communications
89+
-v Display version/build info and exit; short-form flag
8990
-version
90-
Display version/build info and exit
91+
Display version/build info and exit
9192
9293
Commands:
9394
@@ -122,13 +123,12 @@ Commands:
122123

123124
Apache Version 2 License
124125

125-
Copyright © 2020-2021, Duncan McGreggor
126+
Copyright © 2020-2022, Duncan McGreggor
126127

127128
[//]: ---Named-Links---
128129

129130
[logo]: assets/images/logo-v1-x250.png
130131
[logo-large]: assets/images/logo-v1-x1000.png
131-
[github]: https://github.com/ut-proj/midiserver
132132
[gh-actions-badge]: https://github.com/ut-proj/midiserver/workflows/ci%2Fcd/badge.svg
133133
[gh-actions]: https://github.com/ut-proj/midiserver/actions
134134
[go]: https://golang.org/

go.mod

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
module github.com/ut-proj/midiserver
22

3-
go 1.12
3+
go 1.18
44

55
require (
6-
github.com/davecgh/go-spew v1.1.1
76
github.com/ergo-services/ergo v1.999.201
8-
github.com/fatih/color v1.9.0 // indirect
97
github.com/geomyidia/zylog v0.1.5
108
github.com/google/uuid v1.3.0
11-
github.com/kr/pretty v0.1.0 // indirect
12-
github.com/mattn/go-isatty v0.0.13 // indirect
139
github.com/okeuday/erlang_go/v2 v2.0.2
1410
github.com/sirupsen/logrus v1.8.1
1511
github.com/stretchr/testify v1.5.1
1612
gitlab.com/gomidi/midi v1.23.7
1713
gitlab.com/gomidi/rtmididrv v0.14.0
14+
)
15+
16+
require (
17+
github.com/davecgh/go-spew v1.1.1 // indirect
18+
github.com/fatih/color v1.9.0 // indirect
19+
github.com/kr/pretty v0.1.0 // indirect
20+
github.com/mattn/go-colorable v0.1.4 // indirect
21+
github.com/mattn/go-isatty v0.0.13 // indirect
22+
github.com/pmezard/go-difflib v1.0.0 // indirect
1823
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
1924
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
2025
gopkg.in/yaml.v2 v2.4.0 // indirect

0 commit comments

Comments
 (0)