Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CreateModFile (0.1 sec)

  1. src/cmd/go/internal/modcmd/init.go

    	if len(args) > 1 {
    		base.Fatalf("go: 'go mod init' accepts at most one argument")
    	}
    	var modPath string
    	if len(args) == 1 {
    		modPath = args[0]
    	}
    
    	modload.ForceUseModules = true
    	modload.CreateModFile(ctx, modPath) // does all the hard work
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 15:51:46 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top