Skip to content
/ ptrto Public

a tiny library to return pointers to Go builtin types

License

Notifications You must be signed in to change notification settings

mcos/ptrto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

a tiny library to return pointers to Go builtin types

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages