Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 955 Bytes

README.md

File metadata and controls

40 lines (32 loc) · 955 Bytes

ptrto

Build Status GoDoc

ptrto is a tiny library that exposes functions that return pointers to the Go builtin types (http://golang.org/pkg/builtin).

The following types are supported:

  • bool
  • byte
  • float32
  • float64
  • int
  • int8
  • int16
  • int32
  • int64
  • interface
  • string
  • struct
  • uint
  • uint8
  • uint16
  • uint32
  • uint64
  • uintptr

This library is only really useful when testing functions and structs with interface{} arguments, types and parameters. Using this library in actual implementation code is probably not a good idea.

Install

If you really want to use this, install it by running go get github.com/mcos/ptrto

License

MIT License