just make it a method instead
package http type request struct{} func (request) deferred(s string) { println(s) }