Example #1
0
func (s Schema) putAbout(b *bolt.DB) error {
	return b.Update(func(t *bolt.Tx) error {
		b, err := t.CreateBucketIfNotExists(AboutBucket)
		if err != nil {
			return err
		}

		return b.Put([]byte("version"), []byte(s.Version.String()))
	})
}