"Go 리터럴"의 두 판 사이의 차이

3번째 줄: 3번째 줄:
;Go 리터럴
;Go 리터럴


<syntaxhighlight lang='console'>
<syntaxhighlight lang='go' run>
package main
package main
    
    
10번째 줄: 10번째 줄:
func main() {
func main() {
     numbers := []int{5, 3, 9, 0}
     numbers := []int{5, 3, 9, 0}
     fmt.Println(s)
     fmt.Println(numbers)
}
}
</syntaxhighlight>
</syntaxhighlight>

2022년 2월 10일 (목) 19:35 판

1 개요

Go literals
Go 리터럴
package main
  
import "fmt"
  
func main() {
    numbers := []int{5, 3, 9, 0}
    fmt.Println(numbers)
}

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}