see https://crates.io/crates/git-absorb —
git add $FILES_YOU_FIXED
git absorb --and-rebase
// or: git rebase -i --autosquash master
см также https://stackoverflow.com/questions/3103589/how-can-i-easily-fixup-a-past-commit
diff] | |
tool = meld | |
[difftool] | |
prompt = false | |
[difftool "meld"] | |
trustExitCode = true | |
cmd = open -W -a Meld --args \"$LOCAL\" \"$PWD/$REMOTE\" | |
[merge] | |
tool = meld | |
[mergetool] |
DROP SCHEMA public CASCADE; | |
CREATE SCHEMA public; | |
GRANT ALL ON SCHEMA public TO postgres; | |
GRANT ALL ON SCHEMA public TO public; |
func hasDuplicateSymbols(s string) bool { | |
seen := make(map[rune]struct{}, len(s)) | |
for _, r := range s { | |
if _, ok := seen[r]; ok { | |
return true | |
} | |
seen[r] = struct{}{} | |
} | |
return false | |
} |
see https://crates.io/crates/git-absorb —
git add $FILES_YOU_FIXED
git absorb --and-rebase
// or: git rebase -i --autosquash master
см также https://stackoverflow.com/questions/3103589/how-can-i-easily-fixup-a-past-commit
export PATH=$PATH:$(go env GOPATH)/bin |
{ | |
// Add to VS Code settings.js file | |
"cSpell.languageSettings": [ | |
// GoLang settings | |
{ | |
"languageId": "go", | |
// Turn off compound words, because it is only checking strings. | |
"allowCompoundWords": false, | |
// Only check comments and strings | |
"includeRegExpList": [ |
package sql | |
import ( | |
"database/sql" | |
) | |
var ( | |
ErrNoRows = sql.ErrNoRows | |
) |
{ | |
"basics": { | |
"name": "Dmitriy S. Sinyavskiy", | |
"label": "Go Developer | Site Reliability Engineer", | |
"image": "https://avatars0.githubusercontent.com/u/1355056?v=4", | |
"url": "https://habr.com/ru/users/r3code/", | |
"summary": "I'm a software developer with more than 17 years of experience. I try to do my best and encourage teammates to do the same. \n\nI prefer to create documented, well organized and tested code. Other developer should have an ability to start working with the code without any need to ask me about it.\n\nMy open-source code here at GitHub: https://github.com/r3code\n\nOther hobbies:\n* teach kids computer science and programming\n* ship-modeling from plastic\n* snowboarding\n\nI like to work with people. I can understand what stakeholder really need and translate the data to the developers language. Before tell, I listen then propose. For me, it is very important to do the work! I use Kanban board to manage task flow and EventStorming methodology to und |
http://blog.ralch.com/tutorial/golang-tools-inspection/ go get github.com/kisielk/errcheck Stripe/sqfesql github.com/opennota/check/cmd/defercheck github.com/opennota/check/cmd/structcheck github.com/opennota/check/cmd/varcheck