pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/go-mapstructure-bep devel/go-mapstructure-bep: i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ec04738c75ba
branches:  trunk
changeset: 315177:ec04738c75ba
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sun Nov 18 08:06:21 2018 +0000

description:
devel/go-mapstructure-bep: import go-mapstructure-bep-0.0.20180511

mapstructure is a Go library for decoding generic map values to structures and
vice versa, while providing helpful error handling.

This library is most useful when decoding values from some data stream (JSON,
Gob, etc.) where you don't quite know the structure of the underlying data
until you read a part of it. You can therefore read a map[string]interface{}
and use this library to decode it into the proper underlying native Go
structure.

diffstat:

 devel/go-mapstructure-bep/DESCR         |   8 ++++++++
 devel/go-mapstructure-bep/Makefile      |  19 +++++++++++++++++++
 devel/go-mapstructure-bep/PLIST         |  12 ++++++++++++
 devel/go-mapstructure-bep/buildlink3.mk |  16 ++++++++++++++++
 devel/go-mapstructure-bep/distinfo      |   6 ++++++
 5 files changed, 61 insertions(+), 0 deletions(-)

diffs (81 lines):

diff -r c122318d9b54 -r ec04738c75ba devel/go-mapstructure-bep/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mapstructure-bep/DESCR   Sun Nov 18 08:06:21 2018 +0000
@@ -0,0 +1,8 @@
+mapstructure is a Go library for decoding generic map values to structures and
+vice versa, while providing helpful error handling.
+
+This library is most useful when decoding values from some data stream (JSON,
+Gob, etc.) where you don't quite know the structure of the underlying data
+until you read a part of it. You can therefore read a map[string]interface{}
+and use this library to decode it into the proper underlying native Go
+structure.
diff -r c122318d9b54 -r ec04738c75ba devel/go-mapstructure-bep/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mapstructure-bep/Makefile        Sun Nov 18 08:06:21 2018 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2018/11/18 08:06:21 ryoon Exp $
+
+DISTNAME=      mapstructure-bep-0.0.20180511
+PKGNAME=       go-${DISTNAME}
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=bep/}
+CATEGORIES=    devel
+GITHUB_TAG=    bb74f1db0675b241733089d5a1faa5dd8b0ef57b
+GITHUB_PROJECT=        ${PKGBASE:S/^go-//:S/-bep//}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/bep/mapstructure
+COMMENT=       Library for decoding generic map values into native structures
+LICENSE=       mit
+
+GO_DIST_BASE=  ${GITHUB_PROJECT}-${GITHUB_TAG}
+GO_SRCPATH=    github.com/bep/mapstructure
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c122318d9b54 -r ec04738c75ba devel/go-mapstructure-bep/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mapstructure-bep/PLIST   Sun Nov 18 08:06:21 2018 +0000
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1 2018/11/18 08:06:21 ryoon Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/bep/mapstructure.a
+gopkg/src/github.com/bep/mapstructure/LICENSE
+gopkg/src/github.com/bep/mapstructure/README.md
+gopkg/src/github.com/bep/mapstructure/decode_hooks.go
+gopkg/src/github.com/bep/mapstructure/decode_hooks_test.go
+gopkg/src/github.com/bep/mapstructure/error.go
+gopkg/src/github.com/bep/mapstructure/mapstructure.go
+gopkg/src/github.com/bep/mapstructure/mapstructure_benchmark_test.go
+gopkg/src/github.com/bep/mapstructure/mapstructure_bugs_test.go
+gopkg/src/github.com/bep/mapstructure/mapstructure_examples_test.go
+gopkg/src/github.com/bep/mapstructure/mapstructure_test.go
diff -r c122318d9b54 -r ec04738c75ba devel/go-mapstructure-bep/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mapstructure-bep/buildlink3.mk   Sun Nov 18 08:06:21 2018 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/11/18 08:06:21 ryoon Exp $
+
+BUILDLINK_TREE+=       go-mapstructure-bep
+
+.if !defined(GO_MAPSTRUCTURE_BEP_BUILDLINK3_MK)
+GO_MAPSTRUCTURE_BEP_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-mapstructure-bep= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-mapstructure-bep?=      build
+
+BUILDLINK_API_DEPENDS.go-mapstructure-bep+=    go-mapstructure-bep>=0.0
+BUILDLINK_PKGSRCDIR.go-mapstructure-bep?=      ../../devel/go-mapstructure-bep
+
+.endif  # GO_MAPSTRUCTURE_BEP_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -go-mapstructure-bep
diff -r c122318d9b54 -r ec04738c75ba devel/go-mapstructure-bep/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/go-mapstructure-bep/distinfo        Sun Nov 18 08:06:21 2018 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/11/18 08:06:21 ryoon Exp $
+
+SHA1 (mapstructure-bep-0.0.20180511-bb74f1db0675b241733089d5a1faa5dd8b0ef57b.tar.gz) = d24a9c3168f1da1127db69a5fb76875a6992bd63
+RMD160 (mapstructure-bep-0.0.20180511-bb74f1db0675b241733089d5a1faa5dd8b0ef57b.tar.gz) = 8738de6d8d1b7b8fc961fe120b7a73ff7b792684
+SHA512 (mapstructure-bep-0.0.20180511-bb74f1db0675b241733089d5a1faa5dd8b0ef57b.tar.gz) = 
b5740447fa3b81ff8b713f328dbbf866f01527ee71f23141595d0c0f39d865f9ea95a04bac118dc223a3ebfc3ebeb5b8f857fec66f4232ef7da8f292ac8cab59
+Size (mapstructure-bep-0.0.20180511-bb74f1db0675b241733089d5a1faa5dd8b0ef57b.tar.gz) = 18671 bytes



Home | Main Index | Thread Index | Old Index