diff --git a/plugins/golang/golang.go b/plugins/golang/golang.go
index <HASH>..<HASH> 100644
--- a/plugins/golang/golang.go
+++ b/plugins/golang/golang.go
@@ -30,7 +30,10 @@ func (p *Plugin) Open(fn *function.Function) error {
 
 	fn.Shim = true
 	fn.Runtime = nodejs.Runtime
-	fn.Hooks.Clean = "rm -f main"
+
+	if fn.Hooks.Clean == "" {
+		fn.Hooks.Clean = "rm -f main"
+	}
 
 	return nil
 }
fix custom clean hook was not working on golang runtime. Closes #<I> (#<I>)