Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 486 Bytes

File metadata and controls

19 lines (13 loc) · 486 Bytes

Key

Start by creating a key.go file in the types folder. Within your key.go file, you will set your keys to be used throughout the creation of the module.

Defining the keys that will be used throughout the application helps with writing DRY code.

package types

const (
	// module name
	ModuleName = "nameservice"

	// StoreKey to be used when creating the KVStore
	StoreKey = ModuleName
)

Now we move on to writing the Error handling for the module.