Update setup tool.

This commit is contained in:
Twilight 2024-06-13 19:29:20 +08:00
parent 4714d8754c
commit c6f045c7eb

View File

@ -28,7 +28,7 @@ func main() {
func setup() { func setup() {
// 输入新的 go.mod module // 输入新的 go.mod module
var newModName string var newModName string
fmt.Printf("Enter new module name: ") fmt.Printf("Enter new module name(eg: github.com/<your-username>/<your-project-name>): ")
_, err := fmt.Scanln(&newModName) _, err := fmt.Scanln(&newModName)
if err != nil { if err != nil {
fmt.Printf("Unable get new module name: %v\n", err) fmt.Printf("Unable get new module name: %v\n", err)