Loading...
Loading...
Guide for writing idiomatic, effective, and standard Go code. Use this skill when writing, refactoring, or reviewing Go code to ensure adherence to established conventions and best practices.
npx skill4agent add way-platform/skills way-go-styleAGENTS.mdAGENTS.mdtestinggithub.com/google/go-cmp/cmpGolangCI-Lint.golangci.ymlway-magefileencore-go-*if err := f(); err != nilswitch { case condition: ... }if-elsepanicrecovererrortype MyFunc func()http.HandlerFuncvar _ Interface = (*Type)(nil)tasktask_managerutilcommoncClientmethisselfMixedCapsMaxLengthMAX_LENGTHOwner()GetOwnerMethod-erReader*Tsync.MutexT*string*intMustXYZif err != nil { return err }else%wfmt.Errorferrors.Islog.Fatalmainfmt.Errorf("something bad")ctx context.Contextsync.Mutexbytes.Buffertestingcmpt.Helper()YourFunc(%v) = %v, want %vt.Run()New():=var t []T_.usersMapusershttputilcommonnilio.Writer*os.Filesync.Mutexbytes.Bufferbufio.Scannerreferences/