Repo Golang
First Step Clone Repo Golang
อันดับแรกก่อนที่จะเริ่มอ่าน Code เป็นก็ต้องมี code ซะก่อน
ใส่ URL ตรงนี้เลย

องค์ประกอบของหลังบ้านที่ควรรู้
จะเห็นว่า folder กับไฟล์งานนั้นเยอะมาก
แต่จริงๆแล้วที่จำเป็นต้องดูจริงๆมีแค่

DB
มันเป็น type struct ของ table ใน database model (ให้นึกถึง object ใน java คล้ายๆกัน)
Goldal_model
จะคล้ายกับข้างบน เป็น model object แต่มันจะเป็น response ที่จะส่งให้กับหน้าบ้าน.
Routes
ก็คือ route ของ func ต่างๆที่ เราจะใช้ในการ เอาข้อมูล ไป serving หน้าบ้านหรือ เก็บข้อมูลลง DB.