Categorygithub.com/hugmouse/gotermux
repositorypackage
0.0.0-20190929114438-619daae68505
Repository: https://github.com/hugmouse/gotermux.git
Documentation: pkg.go.dev

# README

GoTermux

Code quality checks: CodeFactor Codacy Badge Go Report Card

Documentation reference: GoDoc

Examples and usage of GoTermux: gotermux.mysh.dev

Roadmap: Roadmap

GoTermux gives you the opportunity to execute your scripts in Termux using Golang. All from Go and Termux API features in your hands!

Codestyle

Calling termux command from golang looks just like in termux cmd, but without dash (-).

Example:

// Termux CMD:
termux-battery-status
// Golang: 
TermuxBatteryStatus()

Examples

Code examples can be found at: gotermux.mysh.dev!

Or here: now.sh

Installing Termux API

Use F-droid or Google Play to install Termux API.

Do not mix installations of Termux and Addons between Google Play and F-Droid.

To use Termux API you also need to install the termux-api package:

pkg install termux-api

Installing the package

First of all you need install golang:

pkg install golang

And then:

go get -u github.com/hugmouse/gotermux