Add LockErr binding which implements `error`.

Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/6a96d8f1
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/6a96d8f1
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/6a96d8f1

Branch: refs/heads/master
Commit: 6a96d8f1da4deb3869898faf15e1fa8a8f5622aa
Parents: 66583b2
Author: Marvin Humphrey <[email protected]>
Authored: Sun May 3 10:13:36 2015 -0700
Committer: Marvin Humphrey <[email protected]>
Committed: Sun May 3 11:15:54 2015 -0700

----------------------------------------------------------------------
 go/lucy/store.go | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/6a96d8f1/go/lucy/store.go
----------------------------------------------------------------------
diff --git a/go/lucy/store.go b/go/lucy/store.go
new file mode 100644
index 0000000..9e81d3b
--- /dev/null
+++ b/go/lucy/store.go
@@ -0,0 +1,30 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package lucy
+
+/*
+#include "Lucy/Store/Lock.h"
+*/
+import "C"
+import "unsafe"
+
+import 
"git-wip-us.apache.org/repos/asf/lucy-clownfish.git/runtime/go/clownfish"
+
+func (e *LockErrIMP) Error() string {
+       self := ((*C.lucy_LockErr)(unsafe.Pointer(e.TOPTR())))
+       return 
clownfish.CFStringToGo(unsafe.Pointer(C.LUCY_LockErr_Get_Mess(self)))
+}

Reply via email to