Lộ trình học Go

Struct và interface

Tạo kiểu dữ liệu riêng với struct, phương thức, con trỏ, interface, embedding, lỗi và generics.

Chạy thử Go online

7 bài học

Structs

Group related values into your own type with named fields.

Xem bài học →

Error Handling

Return errors as values, wrap them with context and check them with errors.Is and errors.As.

Xem bài học →

Generics

Write one function or type that works with many types using type parameters.

Xem bài học →