Skip to content

hugmouse/gotermux

Repository files navigation

GoTermux

GoTermux is a wrapper library around the termux-api. It allows you to call termux-* scripts and read the their output in a convenient way.

Example

package main

import (
    "fmt"
    t "github.com/hugmouse/gotermux"
)

func main() {
    battery := t.TermuxBatteryStatus()
    fmt.Println(battery.Percentage) // This will print "38.0"
}

Documentation

Documentation

You can find a quickstart guide here: https://hugmouse.github.io/gotermux-docs/0.1/overview/

Termux API reference: https://hugmouse.github.io/gotermux-docs/0.1/termux-api/

GoTermux reference: https://hugmouse.github.io/gotermux-docs/0.1/gotermux

API documentation can also be found on pkg.go.dev: https://pkg.go.dev/github.com/hugmouse/gotermux

About

Easy-to-use wrapper for Termux API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 2

  •  
  •  

Languages