package main

import "fmt"

func Hook(n *int) {
	*n++
	fmt.Print(*n)
}

package main

import "fmt"

type Counter int

func Hook(n *Counter) {
	*n++
	fmt.Print(*n)
}

--- 
+++ 
@@ -2,9 +2,7 @@
 
 import "fmt"
 
-type Counter int
-
-func Hook(n *Counter) {
+func Hook(n *int) {
 	*n++
 	fmt.Print(*n)
 }
Remove type alias for int

The type alias doesn't add much to the program's clarity.  Some readers
might think that a type alias is required so it's better not to have
it.  Clarifying details can be provided in reference.md if this proves
confusing.
