Difference between revisions of "Function"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by one other user not shown)
Line 1: Line 1:
  
== Bash ==
+
== [[Bash shell functions]] ==
* [[Bash]]: <code>[[function]] { }</code>
 
 
 
log() {
 
echo "[$([[date]] --rfc-3339=seconds)]: $*"
 
}
 
 
 
error() {
 
  echo "[$([[date]] --rfc-3339=seconds)]: $*"
 
  exit 1
 
}
 
 
 
my_funtion () {
 
        echo "Executed my_function with $1 parameter"
 
}
 
  
 
== Python ==
 
== Python ==
 
* <code>[[def]]</code>
 
* <code>[[def]]</code>
 +
 +
== Go ==
 +
* <code>[[func]]</code>
  
 
== Related terms ==
 
== Related terms ==
 
* <code>[[.bash_profile]]</code>
 
* <code>[[.bash_profile]]</code>
 +
* [[Terraform functions]]
 +
* [[Helm functions]]
 +
* [[aws lambda]]
 +
* [[Cloudformation functions]]
 +
* [[GCF]]
 +
* [[return]]
  
 
== See also ==
 
== See also ==
 +
* {{function}}
 
* {{Bash}}
 
* {{Bash}}
 
* {{Programming}}
 
* {{Programming}}
  
 
[[Category:Programming]]
 
[[Category:Programming]]

Latest revision as of 17:39, 31 January 2023

Advertising: