학습 경로

구조체와 인터페이스

구조체, 메서드, 포인터, 인터페이스, 임베딩, 오류, 제네릭.

레슨 9개 · 챌린지 14개

  1. 레슨 챌린지 1개 Structs Group related values into your own type with named fields.
  2. 레슨 챌린지 2개 Methods and Receivers Attach functions to a type and choose between value and pointer receivers.
  3. 레슨 챌린지 2개 Pointers Use & and * to share a value instead of copying it.
  4. 레슨 챌린지 2개 Interfaces Describe behavior with an interface that any type can satisfy.
  5. 레슨 챌린지 2개 Struct Embedding and Composition Reuse fields and methods by embedding one struct in another.
  6. 레슨 챌린지 1개 Temperature Converter Convert between Celsius and Fahrenheit with your own number types.
  7. 레슨 챌린지 2개 Error Handling Return errors as values, wrap them with context and check them with errors.Is and errors.As.
  8. 레슨 챌린지 1개 Bank Account with Errors Model deposits and withdrawals that can fail with your own error types.
  9. 레슨 챌린지 1개 Generics Write one function or type that works with many types using type parameters.