phizog

package
v0.0.0-...-d86747b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package phizog is an attempt to create a more intelligent dictionary capable of identifying unmapped fields and assisting in analyzing data shapes and drawing inferences inference. The phizog store can load Shapes it has seen in the past for comparison and calculation of other statistics. phizog was conceived as a development aid, but could also be a production component with a little work.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Occurrence

type Occurrence struct {
	Shape Shape
	Count int
}

type Shape

type Shape struct {
	Name string
	Keys set.Strings
}

func (Shape) ID

func (s Shape) ID() string

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewStore

func NewStore() *Store

func (*Store) Add

func (s *Store) Add(shape Shape)

func (*Store) AddShape

func (s *Store) AddShape(name string, raw interface{}) error

func (*Store) Dump

func (s *Store) Dump() string

func (*Store) Load

func (s *Store) Load(shapes map[string]Occurrence) error

func (*Store) Write

func (s *Store) Write(w io.Writer) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL