Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JetBrains/go-modern-guidelines
/ functions
Functions
59 in github.com/JetBrains/go-modern-guidelines
⨍
Functions
59
◇
Types & classes
7
↓ 11 callers
Function
Run
Run executes the CLI with args, writes command output to stdout, and returns user-facing errors.
internal/cli/cli.go:21
↓ 10 callers
Method
String
()
internal/cli/cli.go:162
↓ 5 callers
Function
normalizeGoVersion
(rawVersion, develVersion string)
internal/goversion/goversion.go:174
↓ 5 callers
Function
parseGoDirective
(path, develVersion string)
internal/goversion/goversion.go:124
↓ 4 callers
Function
Compare
Compare compares two Go version strings.
internal/goversion/goversion.go:38
↓ 4 callers
Function
writeFile
(t *testing.T, path, content string)
internal/goversion/goversion_test.go:142
↓ 3 callers
Function
ListText
ListText returns short guideline text for guidelines supported by targetGoVersion.
internal/guidelines/guidelines.go:70
↓ 3 callers
Function
parseMajorMinor
(version string)
internal/goversion/goversion.go:196
↓ 2 callers
Function
ExplainText
ExplainText returns detailed guidance for the requested guideline IDs.
internal/guidelines/guidelines.go:83
↓ 2 callers
Function
IsMajorMinor
IsMajorMinor reports whether version uses the Go major.minor form.
internal/goversion/goversion.go:51
↓ 2 callers
Function
LatestKnownVersion
LatestKnownVersion returns the newest Go version covered by the guideline table.
internal/guidelines/guidelines.go:178
↓ 2 callers
Function
Resolve
Resolve returns the normalized Go major.minor version for the given version source.
internal/goversion/goversion.go:19
↓ 2 callers
Function
indentLines
(s, indent string)
internal/guidelines/guidelines.go:126
↓ 2 callers
Function
newFlagSet
(name, usage string)
internal/cli/cli.go:114
↓ 2 callers
Function
parseFlagSet
(fs *flag.FlagSet, args []string, stdout io.Writer)
internal/cli/cli.go:123
↓ 2 callers
Function
resolveGoToolVersion
(source, develVersion string)
internal/goversion/goversion.go:162
↓ 1 callers
Method
Set
(value string)
internal/cli/cli.go:166
↓ 1 callers
Function
availableGuidelineIDs
()
internal/guidelines/guidelines.go:202
↓ 1 callers
Function
detectedVersion
()
internal/cli/cli.go:40
↓ 1 callers
Function
findUp
(startDir, name string)
internal/goversion/goversion.go:109
↓ 1 callers
Function
isModuleVersionFile
(path string)
internal/goversion/goversion.go:104
↓ 1 callers
Function
mustLoadModernGoGuidelines
()
internal/guidelines/guidelines.go:43
↓ 1 callers
Function
normalizeGuidelineIDs
(values []string)
internal/guidelines/guidelines.go:188
↓ 1 callers
Function
parseGoDirectiveVersion
(path, rawVersion, develVersion string)
internal/goversion/goversion.go:154
↓ 1 callers
Function
printUsage
(w io.Writer)
internal/cli/cli.go:141
↓ 1 callers
Function
printVersion
(w io.Writer)
internal/cli/cli.go:155
↓ 1 callers
Function
resolveGoVersionFromModuleFiles
(startDir, develVersion string)
internal/goversion/goversion.go:92
↓ 1 callers
Function
resolveGoVersionFromPath
(filePath, develVersion string)
internal/goversion/goversion.go:59
↓ 1 callers
Function
resolveGuidelinesByID
(guidelineIDs []string)
internal/guidelines/guidelines.go:140
↓ 1 callers
Function
runExplain
(args []string, stdout io.Writer)
internal/cli/cli.go:88
↓ 1 callers
Function
runList
(args []string, stdout io.Writer)
internal/cli/cli.go:48
↓ 1 callers
Function
supportedGuidelines
(targetGoVersion string)
internal/guidelines/guidelines.go:167
↓ 1 callers
Function
toGuidelineDetailsText
(guidelines []modernGoGuideline)
internal/guidelines/guidelines.go:91
↓ 1 callers
Function
toGuidelinesText
(guidelines []modernGoGuideline)
internal/guidelines/guidelines.go:74
↓ 1 callers
Function
writeExamples
(b *strings.Builder, examples []modernGoExample)
internal/guidelines/guidelines.go:109
Function
TestCompare
(t *testing.T)
internal/goversion/goversion_test.go:40
Function
TestExplainFormatting
(t *testing.T)
internal/guidelines/guidelines_test.go:124
Function
TestExplainRequiresIDs
(t *testing.T)
internal/cli/cli_test.go:18
Function
TestGuidelineTableIntegrity
(t *testing.T)
internal/guidelines/guidelines_test.go:53
Function
TestInvalidSubcommandFlagReturnsSingleErrorWithUsage
(t *testing.T)
internal/cli/cli_test.go:30
Function
TestIsMajorMinor
(t *testing.T)
internal/goversion/goversion_test.go:61
Function
TestListForGo127
(t *testing.T)
internal/guidelines/guidelines_test.go:35
Function
TestListForResolvedVersion
(t *testing.T)
internal/guidelines/guidelines_test.go:10
Function
TestListRejectsFilePathFlagWithPositionalPath
(t *testing.T)
internal/cli/cli_test.go:82
Function
TestListRejectsGoVersionWithFilePath
(t *testing.T)
internal/cli/cli_test.go:97
Function
TestListRejectsGoVersionWithPositionalPath
(t *testing.T)
internal/cli/cli_test.go:112
Function
TestListRejectsMultiplePositionalPaths
(t *testing.T)
internal/cli/cli_test.go:67
Function
TestNormalizeGoVersion
(t *testing.T)
internal/goversion/goversion_test.go:10
Function
TestNormalizeGoVersionDevelUsesConfiguredVersion
(t *testing.T)
internal/goversion/goversion_test.go:29
Function
TestParseGoDirectiveFromGoMod
(t *testing.T)
internal/goversion/goversion_test.go:77
Function
TestParseGoDirectiveFromGoWork
(t *testing.T)
internal/goversion/goversion_test.go:93
Function
TestParseGoDirectiveRejectsInvalidGoModVersion
(t *testing.T)
internal/goversion/goversion_test.go:109
Function
TestResolveFromNearestGoMod
(t *testing.T)
internal/goversion/goversion_test.go:122
Function
TestRunReturnsOutputWriteErrors
(t *testing.T)
internal/cli/cli_test.go:139
Function
TestSubcommandHelpWritesUsageToStdout
(t *testing.T)
internal/cli/cli_test.go:161
Function
TestUnknownGuidelineID
(t *testing.T)
internal/cli/cli_test.go:204
Function
TestVersion
(t *testing.T)
internal/cli/cli_test.go:49
Method
Write
([]byte)
internal/cli/cli_test.go:14
Function
main
()
main.go:10