mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-14 10:45:06 +02:00
Merge remote-tracking branch 'refs/remotes/adambard/master'
This commit is contained in:
@@ -3,6 +3,7 @@ language: Go
|
|||||||
filename: learngo-de.go
|
filename: learngo-de.go
|
||||||
contributors:
|
contributors:
|
||||||
- ["Joseph Adams", "https://github.com/jcla1"]
|
- ["Joseph Adams", "https://github.com/jcla1"]
|
||||||
|
- ["Dennis Keller", "https://github.com/denniskeller"]
|
||||||
lang: de-de
|
lang: de-de
|
||||||
---
|
---
|
||||||
Go wurde entwickelt, um Probleme zu lösen. Sie ist zwar nicht der neueste Trend in
|
Go wurde entwickelt, um Probleme zu lösen. Sie ist zwar nicht der neueste Trend in
|
||||||
@@ -306,7 +307,7 @@ func (p pair) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
|||||||
|
|
||||||
## Weitere Resourcen
|
## Weitere Resourcen
|
||||||
Alles zu Go finden Sie auf der [offiziellen Go Webseite](http://golang.org/).
|
Alles zu Go finden Sie auf der [offiziellen Go Webseite](http://golang.org/).
|
||||||
Dort können sie der Tutorial folgen, interaktiv Quelltext ausprobieren und viel
|
Dort können sie dem Tutorial folgen, interaktiv Quelltext ausprobieren und viel
|
||||||
Dokumentation lesen.
|
Dokumentation lesen.
|
||||||
|
|
||||||
Auch zu empfehlen ist die Spezifikation von Go, die nach heutigen Standards sehr
|
Auch zu empfehlen ist die Spezifikation von Go, die nach heutigen Standards sehr
|
||||||
|
@@ -291,12 +291,9 @@ myFunction("foo"); // = "FOO"
|
|||||||
// Note that the value to be returned must start on the same line as the
|
// Note that the value to be returned must start on the same line as the
|
||||||
// `return` keyword, otherwise you'll always return `undefined` due to
|
// `return` keyword, otherwise you'll always return `undefined` due to
|
||||||
// automatic semicolon insertion. Watch out for this when using Allman style.
|
// automatic semicolon insertion. Watch out for this when using Allman style.
|
||||||
function myFunction()
|
function myFunction(){
|
||||||
{
|
|
||||||
return // <- semicolon automatically inserted here
|
return // <- semicolon automatically inserted here
|
||||||
{
|
{thisIsAn: 'object literal'}
|
||||||
thisIsAn: 'object literal'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
myFunction(); // = undefined
|
myFunction(); // = undefined
|
||||||
|
|
||||||
@@ -310,6 +307,12 @@ setTimeout(myFunction, 5000);
|
|||||||
// Note: setTimeout isn't part of the JS language, but is provided by browsers
|
// Note: setTimeout isn't part of the JS language, but is provided by browsers
|
||||||
// and Node.js.
|
// and Node.js.
|
||||||
|
|
||||||
|
// Another function provided by browsers is setInterval
|
||||||
|
function myFunction(){
|
||||||
|
// this code will be called every 5 seconds
|
||||||
|
}
|
||||||
|
setInterval(myFunction, 5000);
|
||||||
|
|
||||||
// Function objects don't even have to be declared with a name - you can write
|
// Function objects don't even have to be declared with a name - you can write
|
||||||
// an anonymous function definition directly into the arguments of another.
|
// an anonymous function definition directly into the arguments of another.
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
|
Reference in New Issue
Block a user