see: https://github.com/ipfs/examples/tree/master/examples/api/service#making-your-own-ipfs-service
The example code "Making your own ipfs service" is outdated and broken since "go-ipfs/core/corenet" was deprecated during the follow commits: https://github.com/ipfs/go-ipfs/pull/3943/commits of our developer magik6k.
The related article "Roll your own ipfs!" is also posted on the examples page of the official website ipfs.io, see: https://ipfs.io/docs/examples/
I found this issue when I was trying to make my own IPFS service. Since I am not quite experienced in Golang development, I have no idea of what to do to fix the missing package go-ipfs/core/corenet when trying to go run host.go as the example article showed.
I thought @whyrusleeping or @magik6k might be the right person who could help us to update or re-write this tutorial, so that we can help more developers making their own IPFS services.
Thank you very much.