• Skip to primary navigation
  • Skip to content
  • Skip to footer
Welcome to the development world of chp Welcome to the development world of chp
  • categories
  • tags
    chp

    chp

    99점이 100점이 되기 위해 일을 더하는 개발자

    • South Korea
    • Website
    • GitHub

    [Go] 표준 입/출력

    Updated: December 05, 2022

    less than 1 minute read

    예제

    • 코드
       package main
          
       import "fmt"
          
       func main() {
       	var i1 int
       	var i2 int
          
       	n, err := fmt.Scanln(&i1, &i2)
       	if err != nil {
       		fmt.Println(err)
       		return
       	}
          
       	fmt.Println(n, i1, i2)
       	println(n, i1, i2)
       	print(n, i1, i2, "\n")
       }
      
    • 실행 결과
       1 2
       2 1 2
       2 1 2
       212
      

    Tags: standard input, standard output

    Categories: Go, programming-language

    Updated: December 5, 2022

    Share on

    Twitter Facebook LinkedIn
    Previous Next

    You may also enjoy

    [Go] unique package

    less than 1 minute read

    October 09 2024

    개요 go1.23.0부터 사용 가능 Documentation 비교 가능한 값을 표준화(interning, hash-consing)하기 위한 기능을 제공 type Handle[T comparable] struct T 유형의 일부 값에 대한 전역적으...

    [Go] maps package

    2 minute read

    October 08 2024

    개요 Documentation 모든 유형의 map에 유용한 다양한 함수를 정의 All Clone Collect Copy DeleteFunc Equal EqualFunc Inser...

    [Go] slices package

    8 minute read

    October 07 2024

    개요 Documentation 모든 유형의 슬라이스에 유용한 다양한 함수를 정의 All AppendSeq Backward BinarySearch BinarySearchFunc Chunk C...

    [cloud native][database] CloudNativePG

    4 minute read

    October 05 2024

    개요 사이트/GitHub 모든 Kubernetes 클러스터에서 PostgreSQL 워크로드를 관리하도록 설계된 오픈소스 오퍼레이터 분산 토폴로지 기능 덕분에 프라이빗, 퍼블릭, 하이브리드 및 멀티클라우드 환경에서 배포를 지원 선언적 구성 및 불변 인프라와 같은 De...

    • Follow:
    • GitHub
    • Feed
    © 2025 chp. Powered by Jekyll & Minimal Mistakes.