Function

From wikieduonline
Jump to navigation Jump to search

Bash[edit]

log() {
	 echo "[$(date --rfc-3339=seconds)]: $*"
}
error() {
  	 echo "[$(date --rfc-3339=seconds)]: $*"
 	 exit 1
}
my_funtion () {
        echo "Executed my_function with $1 parameter"
}

Python[edit]

Go[edit]

Related terms[edit]

See also[edit]