3 ms·
1) If my understanding is correct, you won't need a new Go binary. You can simply update the library, Go just links to it. Go even links to libraries if you u
by zenlikethat 11y ago
1) If my understanding is correct, you won't need a new Go binary. You can simply update the library, Go just links to it. Go even links to libraries if you use certain packages from the standard library, e.g. `os/user`:
$ cat homedir.go
package main
import (
"fmt"
"os/user"
)
func main() {
fmt.Println(user.Current())
}
$ go build homedir.go
$ otool -L homedir
homedir:
/usr/lib/libSystem.B.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 0.0.0, current version 0.0.0)
2) You (most likely) have to recompile and re-deploy the downstream Go program with the patched library.
3) Not sure.