Explore >> Select a destination


You are here

mariocarrion.com
| | www.sethvargo.com
7.9 parsecs away

Travel
| | Go 1.21 has some awesome new functionality that improves the developer experience and performance.
| | cep.dev
14.3 parsecs away

Travel
| | How nil and empty Go structs tend to behave the same for read operations.
| | double-trouble.dev
8.2 parsecs away

Travel
| | Explore innovative features, including enhanced map and slice operations, structured logging...
| | willhaley.com
116.2 parsecs away

Travel
| This is a trivial example, but is meant to demonstrate how you can pipe arguments to a bash function. #!/usr/bin/env bash lowercase() { # Grab input. declare input=${1:-$(</dev/stdin)}; # Use that input to do anything. echo "$input" | tr '[:upper:]' '[:lower:]' } echo "HELLO there, FRIEND!" | lowercase Which outputs the following. hello there, friend!