8000 GitHub - reiver/go-autoinc: Package autoinc implements a serial AUTO_INCREMENT type, for the Go programming language. This is similar to the AUTO_INCREMENT found in many databases.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Package autoinc implements a serial AUTO_INCREMENT type, for the Go programming language. This is similar to the AUTO_INCREMENT found in many databases.

License

Notifications You must be signed in to change notification settings

reiver/go-autoinc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-autoinc

Package autoinc implements a serial AUTO_INCREMENT type, for the Go programming language.

This is similar to the AUTO_INCREMENT found in many databases.

Documention

Online documentation, which includes examples, can be found at: http://godoc.org/github.com/reiver/go-autoinc

GoDoc

Examples

Here is an example autoincional-type that can hold a string:

import "github.com/reiver/go-autoinc"

//

var serial autoinc.AutoInc[uint64]

// ...

next, err := serial.Next()

Import

To import package autoinc use import code like the following:

import "github.com/reiver/go-autoinc"

Installation

To install package autoinc do the following:

GOPROXY=direct go get github.com/reiver/go-autoinc

Author

Package autoinc was written by Charles Iliya Krempeaux

About

Package autoinc implements a serial AUTO_INCREMENT type, for the Go programming language. This is similar to the AUTO_INCREMENT found in many databases.

Topics

Resources

License

Stars

Watchers

Forks

Languages

0