This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"strconv" | |
"sync/atomic" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
// Error type | |
type Error string | |
func (e Error) Error() string { | |
return string(e) | |
} | |
const ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Visible sign of algorithm disorder create an bad environment that encourages further bad code, including broken ones. | |
It is suggested that minor bad codes errors such as below: | |
- Bad indentation | |
- Wrong identifiers names | |
- Not suggestive commit messages | |
It needs to be supervisioned by policies to help to create an atmosphere of order and lawfulness, thereby preventing more bad codes. |