Add go-mapstructure package
This commit is contained in:
parent
9957c2de64
commit
1a1c13063b
5 changed files with 59 additions and 0 deletions
3
devel/go-mapstructure/DESCR
Normal file
3
devel/go-mapstructure/DESCR
Normal file
|
@ -0,0 +1,3 @@
|
|||
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.
|
20
devel/go-mapstructure/Makefile
Normal file
20
devel/go-mapstructure/Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
# $NetBSD: Makefile,v 1.1 2017/08/17 01:32:00 gavan Exp $
|
||||
|
||||
DISTNAME= mapstructure-0.0.20160212
|
||||
PKGNAME= go-${DISTNAME}
|
||||
MASTER_SITES= ${MASTER_SITE_GITHUB:=mitchellh/}
|
||||
CATEGORIES= devel
|
||||
GITHUB_TAG= d2dd0262208475919e1a362f675cfc0e7c10e905
|
||||
GITHUB_PROJECT= ${PKGBASE:S/^go-//}
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://github.com/mitchellh/mapstructure
|
||||
COMMENT= Go library for decoding generic map values into native Go structures.
|
||||
LICENSE= mit
|
||||
|
||||
GO_DIST_BASE= ${GITHUB_PROJECT}-${GITHUB_TAG}
|
||||
GO_SRCPATH= github.com/mitchellh/mapstructure
|
||||
|
||||
.include "../../lang/go/go-package.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
13
devel/go-mapstructure/PLIST
Normal file
13
devel/go-mapstructure/PLIST
Normal file
|
@ -0,0 +1,13 @@
|
|||
@comment $NetBSD: PLIST,v 1.1 2017/08/17 01:32:00 gavan Exp $
|
||||
gopkg/pkg/${GO_PLATFORM}/github.com/mitchellh/mapstructure.a
|
||||
gopkg/src/github.com/mitchellh/mapstructure/LICENSE
|
||||
gopkg/src/github.com/mitchellh/mapstructure/README.md
|
||||
gopkg/src/github.com/mitchellh/mapstructure/decode_hooks.go
|
||||
gopkg/src/github.com/mitchellh/mapstructure/decode_hooks_test.go
|
||||
gopkg/src/github.com/mitchellh/mapstructure/error.go
|
||||
gopkg/src/github.com/mitchellh/mapstructure/mapstructure.go
|
||||
gopkg/src/github.com/mitchellh/mapstructure/mapstructure_benchmark_test.go
|
||||
gopkg/src/github.com/mitchellh/mapstructure/mapstructure_bugs_test.go
|
||||
gopkg/src/github.com/mitchellh/mapstructure/mapstructure_examples_test.go
|
||||
gopkg/src/github.com/mitchellh/mapstructure/mapstructure_test.go
|
||||
@pkgdir bin
|
17
devel/go-mapstructure/buildlink3.mk
Normal file
17
devel/go-mapstructure/buildlink3.mk
Normal file
|
@ -0,0 +1,17 @@
|
|||
# $NetBSD: buildlink3.mk,v 1.1 2017/08/17 01:32:00 gavan Exp $
|
||||
|
||||
BUILDLINK_TREE+= go-mapstructure
|
||||
|
||||
.if !defined(GO_MAPSTRUCTURE_BUILDLINK3_MK)
|
||||
GO_MAPSTRUCTURE_BUILDLINK3_MK:=
|
||||
|
||||
BUILDLINK_CONTENTS_FILTER.go-mapstructure= ${EGREP} gopkg/
|
||||
BUILDLINK_DEPMETHOD.go-mapstructure?= build
|
||||
|
||||
BUILDLINK_API_DEPENDS.go-mapstructure+= go-mapstructure>=0.0
|
||||
BUILDLINK_PKGSRCDIR.go-mapstructure?= ../../devel/go-mapstructure
|
||||
|
||||
.endif # GO_MAPSTRUCTURE_BUILDLINK3_MK
|
||||
|
||||
BUILDLINK_TREE+= -go-mapstructure
|
||||
|
6
devel/go-mapstructure/distinfo
Normal file
6
devel/go-mapstructure/distinfo
Normal file
|
@ -0,0 +1,6 @@
|
|||
$NetBSD: distinfo,v 1.1 2017/08/17 01:32:00 gavan Exp $
|
||||
|
||||
SHA1 (mapstructure-0.0.20160212-d2dd0262208475919e1a362f675cfc0e7c10e905.tar.gz) = 6524fc3e153081b7dc68bc7b1526e11330b37ae4
|
||||
RMD160 (mapstructure-0.0.20160212-d2dd0262208475919e1a362f675cfc0e7c10e905.tar.gz) = 19d72ef5ea5ddc158ac21168e0de528aade21485
|
||||
SHA512 (mapstructure-0.0.20160212-d2dd0262208475919e1a362f675cfc0e7c10e905.tar.gz) = 32001d4fb82661ae01e6fa8fb8af2547671a50763121ff81073bfcb982078496639027427ce134b3f54ba121c9626cf0d5a21004f86ade7cf54ce113e86d779e
|
||||
Size (mapstructure-0.0.20160212-d2dd0262208475919e1a362f675cfc0e7c10e905.tar.gz) = 14263 bytes
|
Loading…
Reference in a new issue