github.com/tilotech/tilores-cli@v0.28.0/internal/pkg/step/modinit.go (about)

     1  package step
     2  
     3  // ModInit creates a step that initializes the go module.
     4  func ModInit(finalModulePath *string) Step {
     5  	return func() error {
     6  		return runCommand(
     7  			"failed to initialize go module: %v",
     8  			createCommand("go", "mod", "init", *finalModulePath),
     9  		)()
    10  	}
    11  }