Last active
December 12, 2019 15:21
-
-
Save klovack/aecd95dcdf68a9ae7b4e5b67db40593b to your computer and use it in GitHub Desktop.
Contoh dokumentasi di Golang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Di Golang jika menulis seperti ini. Ini bisa disa dijadikan bahan dokumentasi | |
dengan menjalankan command seperti | |
godoc -http=:6060 | |
Pastikan command itu dijalankan dimana file ini berada. | |
Lalu buka browser dan pergi ke `localhost:6060` untuk melihat dokumentasi tentang | |
program ini. | |
*/ | |
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello Dunia") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment