"Go Println()"의 두 판 사이의 차이

 
(사용자 2명의 중간 판 5개는 보이지 않습니다)
26번째 줄: 26번째 줄:
==같이 보기==
==같이 보기==
* [[Go Print()]]
* [[Go Print()]]
* [[Go 문자열 출력 행번호 붙이기]]
* [[함수 println()]]
* [[함수 println()]]


31번째 줄: 32번째 줄:
* https://gobyexample.com/values
* https://gobyexample.com/values


[[분류: Go]]
[[분류:Go fmt 패키지]]

2024년 7월 7일 (일) 11:37 기준 최신판

1 개요[ | ]

Go Println()
Go fmt.Println()
package main

import "fmt"

func main() {
	fmt.Println("hello")           // hello
	fmt.Println("hello" + "world") // helloworld
	fmt.Println("hello", "world")  // hello world

	fmt.Println("1+1=", 1+1)         // 1+1= 2
	fmt.Println("8.0/3.0=", 8.0/3.0) // 8.0/3.0= 2.6666666666666665
	fmt.Println("9.0/3.0=", 9.0/3.0) // 9.0/3.0= 3

	fmt.Println(true)  // true
	fmt.Println(false) // false
	fmt.Println(nil)   // <nil>
}

2 같이 보기[ | ]

3 참고[ | ]

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