From 2c5e7caff1f6ef93de9375c918df6bb0eddede74 Mon Sep 17 00:00:00 2001 From: Mathias Nestler Date: Sun, 10 Jun 2018 22:35:31 +0200 Subject: [PATCH] Update CSFML/SFML dependency to v2.3 --- README.md | 9 ++++++--- main.go | 7 +++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index d93788f..3edb542 100644 --- a/README.md +++ b/README.md @@ -4,15 +4,17 @@ A talking countdown written in golang. ### Installation -Unfortunately this application has dependencies. Currently there is no os independent possiblity to play audio files in golang :( +Unfortunately this application has dependencies. Currently (2015-04-11) there is no os independent possiblity to play audio files in golang :( + +Install [CSFML](http://www.sfml-dev.org/download/csfml/) (tested with `v2.3`). #### Linux -Install [CSFML](http://www.sfml-dev.org/download/csfml/) and [SFML](http://www.sfml-dev.org/download/sfml/2.2/). Then just download the [godown](https://github.com/MMore/godown/releases/download/v1.0.0/godown) binary and use it. +Install [SFML](http://www.sfml-dev.org/download/sfml/2.3/). Then just download the [godown](https://github.com/MMore/godown/releases/download/v1.0.1/godown) binary and use it. #### Mac OS X -Clone this repository to your machine and execute `make install_deps_osx`. This installs the dependencies for you. Then just just download the [godown](https://github.com/MMore/godown/releases/download/v1.0.0/godown) binary and use it. +Clone this repository to your machine and execute `make install_deps_osx`, which installs the dependencies for you. Then just just download the [godown](https://github.com/MMore/godown/releases/download/v1.0.1/godown) binary and use it. If you already have a working CSFML and SFML, you can install it from source with `go get github.com/MMore/godown`. @@ -29,6 +31,7 @@ Args: ### Tested Environments * Mac OS X Yosemite and go1.4.1 +* Mac OS X High Sierra and go1.8.1 ### License [LICENSE](LICENSE) diff --git a/main.go b/main.go index 69887ef..f3f162a 100644 --- a/main.go +++ b/main.go @@ -1,14 +1,13 @@ package main import ( - sf "bitbucket.org/krepa098/gosfml2" "fmt" + sf "github.com/manyminds/gosfml" + "gopkg.in/alecthomas/kingpin.v1" "os" "time" - "gopkg.in/alecthomas/kingpin.v1" ) - type mint int type FullTime struct { hours mint @@ -137,7 +136,7 @@ var ( ) func main() { - app.Version("1.0.0") + app.Version("1.0.1") kingpin.MustParse(app.Parse(os.Args[1:])) h, m, s := separateDuration(*duration)