Package to get input from stdin or non-flag command-line arguments.
go get github.com/richi0/goinput
Simple filter that takes input from stdin or command-line and returns the uppercase version in stdout.
package main
import (
"fmt"
"strings"
input "github.com/richi0/goinput"
)
func main() {
input := input.GetInput()
fmt.Printf("%s", strings.ToUpper(input))
}