MCPcopy Create free account
hub / github.com/dagger/dagger / NormalizePackageName

Function NormalizePackageName

sdk/python/runtime/python.go:52–54  ·  view source on GitHub ↗

NormalizePackageName normalizes the name of the directory where the source files will be imported from Assumes input is the normalized project name.

(n string)

Source from the content-addressed store, hash-verified

50//
51// Assumes input is the normalized project name.
52func NormalizePackageName(n string) string {
53 return strings.ReplaceAll(n, "-", "_")
54}
55
56// NormalizeObjectName normalizes the name of the class that is the main
57// Dagger object of the module

Callers 3

loadModInfoMethod · 0.85
loadConfigMethod · 0.85

Calls

no outgoing calls

Tested by 1