Inline expansion can be disabled with the go:noinline pragma. For example, if we build the following simple program:
package main
func printhello() {
println("Hello")
}
func main() {
printhello()
}
we get output that looks like this (trimmed for readability):
$ go ...