Does anyone know this? Or this is an unimplemented feature ? 在 2020年5月19日星期二 UTC+8下午7:49:53,eric fang写道: > > How to generate the cfg of the following Replace method ? I used this > command "GOSSAFUNC=Replace:* go tool compile main.go" but it doesn't work. > Thanks. > > package main > > type byteReplacer [256]byte > > func (r *byteReplacer) Replace(s string) string { > var buf []byte // lazily allocated > for i := 0; i < len(s); i++ { > b := s[i] > if r[b] != b { > if buf == nil { > buf = []byte(s) > } > buf[i] = r[b] > } > } > if buf == nil { > return s > } > return string(buf) > } > > func main() { > } > >
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/0213048f-b1f8-468b-887d-769df058037e%40googlegroups.com.