Skip to content

Commit

Permalink
refactor: serialize: add deprecated mark.
Browse files Browse the repository at this point in the history
  • Loading branch information
drmingdrmer committed Jun 4, 2019
1 parent 0f5487f commit b49769c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
# `grep -v` does not work on travis. No time to find out why -- xp 2019 Feb 22
PKGS := $(shell go list ./... | grep -v "^github.com/openacid/slim/\(vendor\|prototype\|array/pb\)")
PKGS := $(shell go list ./... | grep -v "^github.com/openacid/slim/\(vendor\|prototype\|iohelper\|serialize\|version\)")

# PKGS := github.com/openacid/slim/array \
# github.com/openacid/slim/bit \
# github.com/openacid/slim/iohelper \
# github.com/openacid/slim/serialize \
# github.com/openacid/slim/trie \
# github.com/openacid/slim/version
SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS))

Expand Down
3 changes: 3 additions & 0 deletions iohelper/iohelper.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// Package iohelper provides extra interfaces than package io.
//
// Deprecated: use github.com/openacid/low/iohelper; This module will be removed
// in 1.0.0 .
package iohelper

import (
Expand Down
5 changes: 4 additions & 1 deletion serialize/serialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
// header length and data length.
// Thus we de-serializing, total size can be accquired at once, without reading
// the entire data.
//
// Deprecated: use github.com/openacid/low/pbcmpl; This module will be removed
// in 1.0.0 .
package serialize

import (
Expand All @@ -12,7 +15,7 @@ import (
"io"
"unsafe"

"github.com/openacid/slim/iohelper"
"github.com/openacid/low/iohelper"
"github.com/openacid/slim/version"

proto "github.com/golang/protobuf/proto"
Expand Down
2 changes: 2 additions & 0 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
// Most data structure defined in this repo provides with
// serializing/deserializing APIs.
// Serialized data has a version to describe its structure.
//
// Deprecated: will be removed since 1.0.0
package version

const (
Expand Down

0 comments on commit b49769c

Please sign in to comment.