looking to send an ipv4 address across in 4 bytes, and ipv6 address in 16 bytes - What's similar to [`inet_pton()`](https://beej.us/guide/bgnet/html/multi/inet_ntopman.html) in go?

```
struct sockaddr_in sa;
char str[INET_ADDRSTRLEN];
inet_pton(AF_INET, "192.0.2.33", &(sa.sin_addr));

struct sockaddr_in6 sa;
char str[INET6_ADDRSTRLEN];
inet_pton(AF_INET6, "2001:db8:8714:3a90::12", &(sa.sin6_addr));

```

I know of <https://play.golang.org/p/jn8t7zJzT5v> - that is looking complicated for IPV6 addresses though. 

Thanks!