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 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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