Skip to content

Releases: vektah/dataloaden

v0.3.0

15 May 04:50
9d6b85c
Compare
Choose a tag to compare

This is a pretty large refactor of dataloaden that allows arbitrary types for keys and values.

This removes -slice and -key entirely, and replaces them with 3 mandatory positional arguments:

  • name: The name to use when generating types and constructors
  • key type: the key type as a string in the format (*[])(package.)TypeName
  • value type: the key type as a string in the format (*[])(package.)TypeName

Unlike before with -slice and -ptr these can be nested arbitrarily deeply, for example *[][][]*github.com/my/damn.User is now valid.

for example what used to be

dataloaden -keys int -slice github.com/vektah/dataloaden/example.User	

is now

dataloaden UserSliceLoader int []github.com/vektah/dataloaden/example.User

Add support for go modules

26 Jan 02:29
ce6bd88
Compare
Choose a tag to compare
Merge pull request #23 from vektah/gomod

Switch to go modules

Last version without module support

26 Jan 02:07
Compare
Choose a tag to compare
v0.1.0

Merge remote-tracking branch 'peter/new-loader-func' into HEAD