d3

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: MIT Imports: 7 Imported by: 1

README

Go Reference

d3

Handy functions mostly for using functions like d3.map, d3.Filter in golang. The package heavily depends on #golang #reflect

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSV

func CSV(fname string, v interface{}) interface{}

func Filter

func Filter(array interface{}, fn interface{}) interface{}

func FilterIndex

func FilterIndex(array interface{}, fn interface{}) []int

func FindFirst

func FindFirst(array interface{}, fn interface{}) interface{}

func FindFirstIndex

func FindFirstIndex(array interface{}, fn interface{}) int

func FlatMap

func FlatMap(array interface{}, fieldname string) interface{}

func ForEach

func ForEach(array interface{}, fn interface{})

func ForEachParse

func ForEachParse(fname string, fn interface{})

func Map

func Map(array interface{}, fn interface{}) interface{}

func SubStruct

func SubStruct(v interface{}, fields ...string) interface{}

SubStruct creates array of objs with selected properties "fields" from the input array of objects

Types

This section is empty.

Jump to

Keyboard shortcuts

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