slice

command
v0.0.0-...-a91064a Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2016 License: MIT Imports: 3 Imported by: 0

README

To run the generic version:

$ go run slice.go -bool=true
$ go run slice.go -int=5
$ go run slice.go -string=foo

To generate the string version:

$ gengen -o slice_string github.com/joeshaw/gengen/examples/slice string

To run the string version:

$ go run slice_string/slice.go -string=foo

If you attempt to pass -int or -bool to the string version, it will panic because the Contains() function is strictly defined to take a string argument.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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