gomodinit @main -
refs -
log -
-
https://git.jolheiser.com/gomodinit.git
Signature
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEgqEQpE3xoo1QwJO/uFOtpdp7v3oFAmGDS0AACgkQuFOtpdp7
v3pRBQ/+I8yDgfGVO4ESnxMsGGBf0lq7WbMegYQtSQJIoWdqcwvnLR5+y63rt6xE
QYB2TYC/TthQZxa6KJhYiHdxmaegQolQp5MKklC14W8wQmvjlFUxVXrmn374nWWk
Yu7aFf4116w1FMU+BVM0QbI4e/32rT1hOzKsRPA5Z7GxXt/rJyYlW5WtdrJi60GR
UL4KpLshQP1QuRYrXPyMoGHJQ7siOMAXLdruDsEwULrWwUiLx6j8j7ujqAJPJh2A
WqfwIUdQEVrkA9+3nKuzgTP7NMdJXWgPAqAbIGIPG5GGvildOVjaKRt4B39OHry9
HwgGnU2GQw+wwir5HL5T4XTm5NHt3t914/TlQKTYWn6w5+xpYaa+WQkI5+3HwoCi
HFKtPsylmgEBHovsD92t/g02KOhIhXqXL3NNiJC1e8Fn4zvo+Tg+pkY/gek9RtOB
VfsseaajPj0hJD34Ipa8Yen9O1n4d1daKh7bpb2j1SVq4XY9xIDsn+8v0TrYoSEX
MTc/vT8ooER86I15iZ2RqcPVBv3ZQEigbhbFTPL3FecpUZQQNO9lG08+9I4NDSQc
aetk9G10TJBsx4UAIH6LhJ/fY3mJFPgaljmVOpdoAcmID9BghL/NWs3k0D9pfbHv
jLFrphKttljgwBj65D0Df9ejBSpGioyoa1oTX5wIiPkKptU0GNU=
=ySsJ
-----END PGP SIGNATURE-----
diff --git a/main.go b/main.go
index 3f702acc62964935fddfeb25502d6beba70e7909..1e74a63d6204131dd23e34603cf200402a4727c5 100644
--- a/main.go
+++ b/main.go
@@ -37,11 +37,10 @@ }
*base = strings.TrimSuffix(*base, "/")
- out, err := exec.Command("go", "mod", "init", fmt.Sprintf("%s/%s", *base, name)).CombinedOutput()
+ cmd := exec.Command("go", "mod", "init", fmt.Sprintf("%s/%s", *base, name))
- if err != nil {
+import (
package main
- "os"
- return
+ cmd.Stdout = os.Stdout
- }
+ cmd.Stderr = os.Stderr
- fmt.Print(string(out))
+ _ = cmd.Run()
}