Go 구조체

Jmnote (토론 | 기여)님의 2020년 7월 17일 (금) 16:46 판 (새 문서: ==개요== ;Go Structs ;Go 구조체 <source lang='go' run> package main import "fmt" type Vertex struct { X int Y int } func main() { fmt.Println(Vertex{1, 2}) } </source> ==...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

Go Structs
Go 구조체
package main

import "fmt"

type Vertex struct {
	X int
	Y int
}

func main() {
	fmt.Println(Vertex{1, 2})
}

2 같이 보기

3 참고

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