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