protobuf-ntypes

protobuf nilable data structures


Keywords
protobuf, data-structures, grpc, complex-protobuf-messages, golang, json, null, python, sql
License
MIT
Install
pip install protobuf-ntypes==1.3.0

Documentation

ntypes GoDoc

CircleCI Code Climate Go Report Card pypi Download

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