recycler

command
v0.0.0-...-cefda66 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2016 License: MIT Imports: 18 Imported by: 0

README

Recycler

recycler is a tool to automate the creation of typed memory recyclers in golang

GoDoc

You can generate multiple type of recycler, they will have different names, but have the same signature :

  • To generate pool backed recycler:
//go:generate recycler -type=<T> -output <file.go>
  • To generate freelist backed recycler:
//go:generate recycler -type=<T> -size <buffer_size> -template freelist.gotpl
  • To generate your own recycler:
//go:generate recycler -type=<T> -size <buffer_size> -template /path/to/recycler.tpl

available template vars will be {{.Type}} and {{.Size}}

Prs are welcome too !

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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