dingoblog / dingo

Blog engine written in Go
MIT License
284 stars 37 forks source link

Refactoring Message and post model with introduction of meddler #43

Closed nak3 closed 8 years ago

nak3 commented 8 years ago

This PR contains refactoring of Message and Post model with:

1. Introduction of meddler

1-1. Why meddler?
1-2. Feasibility

2. Update of Post structure

3. Move sql statments from sql_stmt.go into model codes

nak3 commented 8 years ago

If this refactoring is accepted, I will continue this for other models.

dinever commented 8 years ago

Hi @nak3, just had a look at this, meddler looks pretty cool. Now we can make our models much simpler. Thank you for your contribution!