Categorygithub.com/applinskinner/ntypes
repositorypackage
1.0.0
Repository: https://github.com/applinskinner/ntypes.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# README

ntypes GoDoc Build Status codecov.io Code Climate Go Report Card

Package provides set of types that helps to build complex protobuf messages that contains optional properties. API can be considered as stable.

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 implementss func <Type>Or(<builtin>) <builtin> {} method. It returns given argument if receiver is not valid or is nil. For example: ntypes.Bool.BoolOr.