added go library for write-rule