Simplicity is prerequisite for reliability. 简单是可靠的先觉条件
Readablity: 可读性
Readability is essential for maintainablity. 可读性对于可维护性至关重要 Programs must be written for people to read, and only incidentally for machine to execute. 程序必须是为人们阅读而编写的,而偶然为及其执行而编写
Productivity: 生产力
Design is the art of arranging code to work today, and be changeable forever.
// method -> HTTP Method {GET,PUT,POST,DELETE} func (engine *Engine) addRoute(method, path string, handlers HandlersChain) { assert1(path[0] == '/', "path must begin with '/'") assert1(method != "", "HTTP method can not be empty") assert1(len(handlers) > 0, "there must be at least one handler")