| Go Programming Language | UserPreferences |
|
|
|
°ú¿¬ ±¸±ÛÀº ¾îµð±îÁö ¿µ¿ªÀ» È®ÀåÇÒ±î? µåµð¾î ±¸±Û¿¡¼ ÇÁ·Î±×·¡¹Ö ¾ð¾î¸¦ ³»³ù´Ù. |
| |
|
1. =, := 1. multi return 1. goroutine 1. memory management 1. GC (Garbage collection) |
make : slices, maps, channels make([] int) -> []int new([] int) -> *[]int
* Test ÆÄÀÏ ¸¸µé±â
1. testÆÄÀÏ À̸§
*_test.go
2. testÇÔ¼ö À̸§
func TestXXX(t *testing.T)
{
t.Error("error printing")
}
3. import½Ã۱â
import "testing"
* Makefile ¸¸µé±â
1. Makefile¿¡´Â _test.go ÆÄÀÏÀÌ ÀÖÀ¸¸é ¾ÈµÈ´Ù.
include $(GOROOT)/src/Make.$(GOARCH)
TARG=?
GOFILES=
source1.go
source2.go
include $(GOROOT)/src/Make.pkg
* ½ÇÇàÇϱâ (2°¡Áö ¹æ¹ý)
>make test
>gotest
|
Go ¸¶½ºÄÚÆ®¸¦ ÀÌ¿ëÇÑ Æ¼¼ÅÃ÷ Á¦ÀÛ. |
|
|
|
17Àϳ¯ http://golang.org¿¡ Áß±¹¾î, ÀϺ»¾î, µ¶ÀϾî, ·¯½Ã¾Æ¾î¿¡ À̾î Çѱ¹¾î Âü°í ¹®¼ ÆäÀÌÁö°¡ »ý°å´Ù. Çѱ¹¾î ¹®¼ ¹öÀüÀ» À§ÇÑ »çÀÌÆ®¸¦ ¸¸µé°í Andrew Gerrand¿¡°Ô ¸µÅ©¸¦ Ãß°¡ÇØ ÁÙ ¼ö ÀÖ³Ä°í ¿äûÇß´Ù. ¸î ½Ã°£¸¸¿¡ Çѱ¹¾î ¸µÅ©°¡ ¸¸µé¾îÁ³´Ù.
Çѱ¹¾î ¹ø¿ªÀ¸¸£ ½ÃÀÛÇØ¾ß°Ú´Ù°í °á½ÉÇϰí ÇൿÇÏ°í °á°ú¸¦ º¸°í ÀÌ°Ô ÇϷ縸¿¡ ÀÌ·ç¾îÁö´õ¶ó. ½Å±âÇÏ´Ù. |
|
gopher ½ºÆ¼Ä¿¸¦ Á¦ÀÛÇϱâ·Î °á½É. ½Â¹üÀÌÇÑÅ× ´ë·«ÀûÀÎ ¾ÆÀ̵ð¾î ÁÖ°í À̹ÌÁö ºÎŹ. |
|
Go ź»ý
|