From 0a15ae9b9dfa945725807cf4c12d5f6295f77366 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Wed, 1 Apr 2020 23:27:15 +0100 Subject: [PATCH] Move String method (#1467) --- store/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/store/store.go b/store/store.go index 21101cb8..057ad4ea 100644 --- a/store/store.go +++ b/store/store.go @@ -20,8 +20,6 @@ type Store interface { Init(...Option) error // Options allows you to view the current options. Options() Options - // String returns the name of the implementation. - String() string // Read takes a single key name and optional ReadOptions. It returns matching []*Record or an error. Read(key string, opts ...ReadOption) ([]*Record, error) // Write() writes a record to the store, and returns an error if the record was not written. @@ -30,6 +28,8 @@ type Store interface { Delete(key string, opts ...DeleteOption) error // List returns any keys that match, or an empty list with no error if none matched. List(opts ...ListOption) ([]string, error) + // String returns the name of the implementation. + String() string } // Record is an item stored or retrieved from a Store