| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- goroutines
- App.vue
- emit
- todo-list
- Server
- container
- method
- URL
- channel
- graceful shutdown
- reactivity
- toggle
- CDN
- SFC
- localStorage
- component
- Dictionary
- cli
- PROPS
- Vue.js
- map
- 행렬
- golang
- Refactoring
- goroutine
- Matrix
- Vue
- TODO
- websocket
- go
Archives
- Today
- Total
목록try-exception (1)
ksundev 님의 블로그
# 정리지금까지 우리는 계좌와 계좌생성 기능을 만들었었다. 이제 입금을 해보자.그 전에 잠깐 이전 코드를 다시 살펴보자.// NewAccount creates a new accountfunc NewAccount(owner string) *Account { return &Account{ owner: owner, balance: 0, }}// 이제 main.go에서account := accounts.NewAccount{"ksun"}이 경우 account의 type은 무엇일까? 질문에 답을 생각하며 다음으로 넘어가자.# Deposit() -> method맡길 금액을 입력받아 계좌에 충전하는 메소드를 만들어보자.// Deposit adds amount to the balancefunc (a Account..
[개발] Go/초급 프로젝트
2025. 6. 10. 20:54