MCPcopy Create free account

hub / github.com/JetBrains/go-modern-guidelines / functions

Functions59 in github.com/JetBrains/go-modern-guidelines

↓ 11 callersFunctionRun
Run executes the CLI with args, writes command output to stdout, and returns user-facing errors.
internal/cli/cli.go:21
↓ 10 callersMethodString
()
internal/cli/cli.go:162
↓ 5 callersFunctionnormalizeGoVersion
(rawVersion, develVersion string)
internal/goversion/goversion.go:174
↓ 5 callersFunctionparseGoDirective
(path, develVersion string)
internal/goversion/goversion.go:124
↓ 4 callersFunctionCompare
Compare compares two Go version strings.
internal/goversion/goversion.go:38
↓ 4 callersFunctionwriteFile
(t *testing.T, path, content string)
internal/goversion/goversion_test.go:142
↓ 3 callersFunctionListText
ListText returns short guideline text for guidelines supported by targetGoVersion.
internal/guidelines/guidelines.go:70
↓ 3 callersFunctionparseMajorMinor
(version string)
internal/goversion/goversion.go:196
↓ 2 callersFunctionExplainText
ExplainText returns detailed guidance for the requested guideline IDs.
internal/guidelines/guidelines.go:83
↓ 2 callersFunctionIsMajorMinor
IsMajorMinor reports whether version uses the Go major.minor form.
internal/goversion/goversion.go:51
↓ 2 callersFunctionLatestKnownVersion
LatestKnownVersion returns the newest Go version covered by the guideline table.
internal/guidelines/guidelines.go:178
↓ 2 callersFunctionResolve
Resolve returns the normalized Go major.minor version for the given version source.
internal/goversion/goversion.go:19
↓ 2 callersFunctionindentLines
(s, indent string)
internal/guidelines/guidelines.go:126
↓ 2 callersFunctionnewFlagSet
(name, usage string)
internal/cli/cli.go:114
↓ 2 callersFunctionparseFlagSet
(fs *flag.FlagSet, args []string, stdout io.Writer)
internal/cli/cli.go:123
↓ 2 callersFunctionresolveGoToolVersion
(source, develVersion string)
internal/goversion/goversion.go:162
↓ 1 callersMethodSet
(value string)
internal/cli/cli.go:166
↓ 1 callersFunctionavailableGuidelineIDs
()
internal/guidelines/guidelines.go:202
↓ 1 callersFunctiondetectedVersion
()
internal/cli/cli.go:40
↓ 1 callersFunctionfindUp
(startDir, name string)
internal/goversion/goversion.go:109
↓ 1 callersFunctionisModuleVersionFile
(path string)
internal/goversion/goversion.go:104
↓ 1 callersFunctionmustLoadModernGoGuidelines
()
internal/guidelines/guidelines.go:43
↓ 1 callersFunctionnormalizeGuidelineIDs
(values []string)
internal/guidelines/guidelines.go:188
↓ 1 callersFunctionparseGoDirectiveVersion
(path, rawVersion, develVersion string)
internal/goversion/goversion.go:154
↓ 1 callersFunctionprintUsage
(w io.Writer)
internal/cli/cli.go:141
↓ 1 callersFunctionprintVersion
(w io.Writer)
internal/cli/cli.go:155
↓ 1 callersFunctionresolveGoVersionFromModuleFiles
(startDir, develVersion string)
internal/goversion/goversion.go:92
↓ 1 callersFunctionresolveGoVersionFromPath
(filePath, develVersion string)
internal/goversion/goversion.go:59
↓ 1 callersFunctionresolveGuidelinesByID
(guidelineIDs []string)
internal/guidelines/guidelines.go:140
↓ 1 callersFunctionrunExplain
(args []string, stdout io.Writer)
internal/cli/cli.go:88
↓ 1 callersFunctionrunList
(args []string, stdout io.Writer)
internal/cli/cli.go:48
↓ 1 callersFunctionsupportedGuidelines
(targetGoVersion string)
internal/guidelines/guidelines.go:167
↓ 1 callersFunctiontoGuidelineDetailsText
(guidelines []modernGoGuideline)
internal/guidelines/guidelines.go:91
↓ 1 callersFunctiontoGuidelinesText
(guidelines []modernGoGuideline)
internal/guidelines/guidelines.go:74
↓ 1 callersFunctionwriteExamples
(b *strings.Builder, examples []modernGoExample)
internal/guidelines/guidelines.go:109
FunctionTestCompare
(t *testing.T)
internal/goversion/goversion_test.go:40
FunctionTestExplainFormatting
(t *testing.T)
internal/guidelines/guidelines_test.go:124
FunctionTestExplainRequiresIDs
(t *testing.T)
internal/cli/cli_test.go:18
FunctionTestGuidelineTableIntegrity
(t *testing.T)
internal/guidelines/guidelines_test.go:53
FunctionTestInvalidSubcommandFlagReturnsSingleErrorWithUsage
(t *testing.T)
internal/cli/cli_test.go:30
FunctionTestIsMajorMinor
(t *testing.T)
internal/goversion/goversion_test.go:61
FunctionTestListForGo127
(t *testing.T)
internal/guidelines/guidelines_test.go:35
FunctionTestListForResolvedVersion
(t *testing.T)
internal/guidelines/guidelines_test.go:10
FunctionTestListRejectsFilePathFlagWithPositionalPath
(t *testing.T)
internal/cli/cli_test.go:82
FunctionTestListRejectsGoVersionWithFilePath
(t *testing.T)
internal/cli/cli_test.go:97
FunctionTestListRejectsGoVersionWithPositionalPath
(t *testing.T)
internal/cli/cli_test.go:112
FunctionTestListRejectsMultiplePositionalPaths
(t *testing.T)
internal/cli/cli_test.go:67
FunctionTestNormalizeGoVersion
(t *testing.T)
internal/goversion/goversion_test.go:10
FunctionTestNormalizeGoVersionDevelUsesConfiguredVersion
(t *testing.T)
internal/goversion/goversion_test.go:29
FunctionTestParseGoDirectiveFromGoMod
(t *testing.T)
internal/goversion/goversion_test.go:77
FunctionTestParseGoDirectiveFromGoWork
(t *testing.T)
internal/goversion/goversion_test.go:93
FunctionTestParseGoDirectiveRejectsInvalidGoModVersion
(t *testing.T)
internal/goversion/goversion_test.go:109
FunctionTestResolveFromNearestGoMod
(t *testing.T)
internal/goversion/goversion_test.go:122
FunctionTestRunReturnsOutputWriteErrors
(t *testing.T)
internal/cli/cli_test.go:139
FunctionTestSubcommandHelpWritesUsageToStdout
(t *testing.T)
internal/cli/cli_test.go:161
FunctionTestUnknownGuidelineID
(t *testing.T)
internal/cli/cli_test.go:204
FunctionTestVersion
(t *testing.T)
internal/cli/cli_test.go:49
MethodWrite
([]byte)
internal/cli/cli_test.go:14
Functionmain
()
main.go:10