/helloworld/helloworld/helloworld.go
http://asist-world.googlecode.com/ · Go · 19 lines · 12 code · 4 blank · 3 comment · 0 complexity · 17fc2a9095ba1a22f231f29a7d548d09 MD5 · raw file
- // Copyright 2011 Google Inc. All rights reserved.
- // Use of this source code is governed by the Apache 2.0
- // license that can be found in the LICENSE file.
-
- package counter
-
- import (
- "fmt"
- "http"
- )
-
- func init() {
- http.HandleFunc("/", handle)
- }
-
- func handle(w http.ResponseWriter, r *http.Request) {
- w.Header().Set("Content-Type", "text/plain; charset=utf-8")
- fmt.Fprint(w, "Hello, World! 세상아 안녕!\n")
- }