This is a WIP integration of C Telegram library (https://github.com/vysheng/tgl) into Go
Version: 0.1-alpha
go-telegram is licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).
- Alpha version
- In planning phase.
Any useful code yet.- Exposing the library into Go without any aliasing.
- Beta version
- TbD
Sadly we are facing two problems with the current project approach:
- Unsupported git submodules in go get command. (golang/go#7764)
- Currently tgl library doesn't have a pkg-config package defined, so we need to compile it by ourselves in the correct location. (TODO: Need to create a issue for this or provide a pull request to the tgl project)
So you need to do some manual arrangment to succesfully install the package.
$ go get -d github.com/gloob/go-telegram && \
cd $GOPATH/src/github.com/gloob/go-telegram && \
git submodule update --init --recursive && \
cd ./lib/tgl && ./configure && make && \
go get -u github.com/gloob/go-telegram
TODO:
- Refactor Makefile with the previous problems to automatically create using make.
- Check viability of using subtree instead of submodules (http://blogs.atlassian.com/2013/05/alternatives-to-git-submodule-git-subtree/)
- Create issue to check viability to add pkg-config support to tlg.
- Linux
- Not yet!
- Mac OS
- Not yet!
- Windows
- planned for 2015 Q4
Check ./tg directory. (WIP)
You can contact me at [email protected]