Commits

w...@styx.org  committed 747764f

add GPL - kyoto cabinet is gpl3

  • Participants
  • Parent commits 7ed2616

Comments (0)

Files changed (2)

 /*
+
  Kyoto Cabinet bindings for Go.
 
- Written by William Waites in 2011
+ Copyleft by William Waites in 2011
 
- This is public domain software, do with what you like, no warranties, etc.
+ This program is free software: you can redistribute it and/or modify it under the terms of
+ the GNU General Public License as published by the Free Software Foundation, either version
+ 3 of the License, or any later version.
 
- Normal usage will be along the lines of,
+ This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
+ without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along with this program.
+ If not, see <http://www.gnu.org/licenses/>.
+
+ Simple usage will be along the lines of,
 
      kc := cabinet.New()
      err = kc.Open("some_db.kch")
-     kc.Set("hello", "world")
-     world, err = kc.Get("hello"
+     err = kc.Set([]byte("hello"), []byte("world"))
+     world, err = kc.Get([]byte("hello"))
      err = kc.Close()
      kc.Del()