rwxrob-dot/scripts/gosetget
Rob Muhlestein 2ea0289e9f Rebase
2022-02-09 02:29:05 -05:00

16 lines
283 B
Bash
Executable File

#!/usr/bin/env bash
_trim() {
local it="${1#"${1%%[![:space:]]*}"}"
echo -e "${it%"${it##*[![:space:]]}"}"
}
while IFS= read -r name; do
name=$(_trim "$name")
[[ -z "$name" ]] && continue
name=${name^}
printf "\t%s() string\n\tSet%s(v string)\n" "$name" "$name"
done