如何在CoAP服务器程序Golang中添加资源或端点

https://github.com/dustin/go-coap

I am using the above library for Building a Server-Client programs in Golang. How can we add a Resource or Endpoint on Server Side and write a Handler in-specific to that endpoint.

And also how to Publish data to specific Resource or Endpoint from client Side.

Can someone give examples using the above library. Thanks in Advance!

The sample code of client and server are under ./example/