File: control

package info (click to toggle)
golang-github-alecthomas-repr 0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 120 kB
  • sloc: sh: 32; makefile: 2
file content (47 lines) | stat: -rw-r--r-- 1,322 bytes parent folder | download | duplicates (2)
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
Source: golang-github-alecthomas-repr
Section: golang
Priority: optional
Maintainer: Debian Go Packaging Team <team+pkg-go@tracker.debian.org>
Uploaders: Anthony Fok <foka@debian.org>
Rules-Requires-Root: no
Build-Depends: debhelper-compat (= 13),
               dh-sequence-golang,
               golang-any (>= 2:1.18~)
Testsuite: autopkgtest-pkg-go
Standards-Version: 4.6.2
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
Multi-Arch: foreign
Depends: ${misc:Depends}
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}}