일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- MSA
- replication lag
- 오블완
- RDS
- go
- javascript
- database/sql
- Kubernetes
- 통합 로깅 시스템
- sqs fifo queue
- 디자인패턴
- 캡슐화
- logging
- AWS
- elasticsearch
- AI
- Infra
- blank import
- GIT
- golang
- context7
- goland
- GoF
- 구조체
- 관측 가능성
- Intellij
- 티스토리챌린지
- typescript
- go-sql-driver
- esbuild
Archives
- Today
- Total
목록2022/05 (1)
Fall in IT.
Go 1.18버전부터 추가 된 generic 사용해보기
안녕하세요. 오늘은 Go 1.18 버전에서 추가 된 generic을 사용해보도록 하겠습니다. Generic에 대한 개념은 여기서 확인해주시기 바랍니다. Generic 사용 전 (source code) interface를 사용하여 스택을 구현한 경우 package main import "fmt" type stack struct { data []interface{} } type Stack interface { Push(data interface{}) Pop() interface{} Get() []interface{} } func New() Stack { return &stack{ data: []interface{}{}, } } func (s *stack) Push(data interface{}) { fmt...
프로그래밍언어/Golang
2022. 5. 2. 15:53