package main

import (
    "fmt"
    "time"
)

func fetchData(ch chan string) {
    time.Sleep(1 * time.Second)
    ch <- "Download complete!"
}

func main() {
    ch := make(chan string)
    go fetchData(ch)
    fmt.Println("Downloading...")
    fmt.Println(<- ch)
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: