Ninep is a go library for writing 9p2000 servers. It is heavily influenced by the design of the plan9 lib9p C library. The go.dev link has some examples and more specific details for library usage.
It is reccomended to have some familiarity with 9p itself. The best resource to learn what the server is responsible for is reading through section 5 of the manual.