| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- javav 1676
- spring mongodb
- spring mongodb switch
- 익명 객체 @transactional
- go
- kotiln functional interface
- ipfs bean
- 백준 연결요소 자바
- java 팩토리얼 개수
- ipfs singletone
- nodejs rabbitmq
- 안정해시
- 백준 2252 줄세우기
- Claude Intelij 연결
- spring mongoTemplate
- java 백준 1509
- Spring ipfs
- 백준 1504 java
- kotiln const
- Java Call By Refernce
- spring mongoTemplate switch
- kotiln const val
- rabbitmq 싱글톤
- java 파티
- mongodb lookup
- java 1238
- 백준 특정한 최단 경로
- 자바 백준 팩토리얼 개수
- java 1509
- 자바 1676
Archives
- Today
- Total
목록go interface (1)
공부 흔적남기기
Go Interface 사용법
Go를 공부하다가 Interface를 사용하는게 신기해서 아주 간단한 예를 들어 정리하고자한다. 먼저 신기한 이유는 인터페이스를 구현할 때 다른 언어와 달리 implemnt와 같은 명시를 안해줘도 된다. 명시하지 않아도 내재적으로 상속한다고 보기때문이다. 코드를 보면 납득이 될 것이다. package main import "fmt" type Book struct { title string author string copyRight string } func (b Book) String() string { return fmt.Sprintf("제목은 %s 작가는 %s 저작권은 %s", b.title, b.author, b.copyRight) } func print() { fmt.Println(Book{"자바의..
프로그래밍 언어/Go
2023. 2. 20. 22:37