Contents

piotrkowalczuk/ntypes

Package provides set of types that helps to build complex protobuf messages that contains optional properties.

Types

Basic

Arrays

Arrays support is not an SQL standard. Extra import needs to be added to make it working with postgres driver:

`` import _ "github.com/piotrkowalczuk/ntypes/ntypespq" ``

Interfaces

Some type implements set of interfaces:

Helpers

Besides that each type implements func <Type>Or(<builtin>) <builtin> {} method. It returns given argument if receiver is not valid or is nil. For example: ntypes.Bool.BoolOr.

Package Metadata

Repository: piotrkowalczuk/ntypes

Default branch: master

README: README.md