A small package for changing the terminal title in Golang. Supporting Windows, Linux and Mac OS.
go get github.com/ibadus/title
package main
import (
"github.com/ibadus/title"
)
func main() {
title.Set("Hello World!")
}
You can also use the Setf
function to include formatted strings:
package main
import (
"github.com/ibadus/title"
)
func main() {
title.Setf("Hello %s!", "World)
}
This package is released under the MIT license. See LICENSE for more information.