File: control

package info (click to toggle)
golang-github-alecthomas-repr 0.0~git20181024.d37bc2a-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 72 kB
  • sloc: makefile: 2
file content (48 lines) | stat: -rw-r--r-- 1,397 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Source: golang-github-alecthomas-repr
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Uploaders: Anthony Fok <foka@debian.org>
Section: devel
Testsuite: autopkgtest-pkg-go
Priority: optional
Build-Depends: debhelper (>= 11),
               dh-golang (>= 1.34~),
               golang-any (>= 2:1.10~),
               golang-github-stretchr-testify-dev
Standards-Version: 4.3.0
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-alecthomas-repr
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-alecthomas-repr.git
Homepage: https://github.com/alecthomas/repr
XS-Go-Import-Path: github.com/alecthomas/repr

Package: golang-github-alecthomas-repr-dev
Architecture: all
Depends: ${shlibs:Depends},
         ${misc:Depends},
         golang-github-stretchr-testify-dev
Description: Python's repr() for Go
 The repr package attempts to represent Go values in a form that can be
 used almost directly in Go source code.
 .
 Unfortunately, some values (such as pointers to basic types) cannot
 be represented directly in Go.  These values will be represented as
 &<value>, e.g. &23
 .
 Example:
 .
   type test struct {
     S string
     I int
     A []int
   }
 .
   func main() {
     repr.Print(&test{
       S: "String",
       I: 123,
       A: []int{1, 2, 3},
     })
   }
 .
 Outputs
 .
   &main.test{S: "String", I: 123, A: []int{1, 2, 3}}