Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Défi : Hello World | Démarrage
Introduction à Golang

bookDéfi : Hello World

Tâche

Compléter le code suivant qui affiche "Operation Successful".

index.go

index.go

copy
123456
package main import "fmt" func main() { ___("Operation Successful") }
  1. Utilisation d'une fonction pour afficher du texte.
  2. La fonction provient du package fmt.
  3. Compléter l'espace vide avec le nom de fonction approprié.
package main
import "fmt"
func main() {
    fmt.Println("Operation Successful")
}
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 8

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Suggested prompts:

What does the fmt.Println function do?

Are there other functions in the fmt package for displaying text?

Can you explain why we use double quotes around the message?

Awesome!

Completion rate improved to 1.96

bookDéfi : Hello World

Glissez pour afficher le menu

Tâche

Compléter le code suivant qui affiche "Operation Successful".

index.go

index.go

copy
123456
package main import "fmt" func main() { ___("Operation Successful") }
  1. Utilisation d'une fonction pour afficher du texte.
  2. La fonction provient du package fmt.
  3. Compléter l'espace vide avec le nom de fonction approprié.
package main
import "fmt"
func main() {
    fmt.Println("Operation Successful")
}
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 8
some-alt