golang-github-alecthomas-repr 0.1.0-1 source package in Ubuntu
Changelog
golang-github-alecthomas-repr (0.1.0-1) unstable; urgency=medium * New upstream version 0.1.0 * Set debian/watch to track release tags -- Anthony Fok <email address hidden> Sun, 25 Sep 2022 01:48:41 -0600
Upload details
- Uploaded by:
- Debian Go Packaging Team
- Uploaded to:
- Sid
- Original maintainer:
- Debian Go Packaging Team
- Architectures:
- all
- Section:
- golang
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section |
---|
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
golang-github-alecthomas-repr_0.1.0-1.dsc | 2.2 KiB | fe2eb455e4a24f1fc94eb7a119af79c8b41bf3644f4e3a5004e34ef1d32d5f4d |
golang-github-alecthomas-repr_0.1.0.orig.tar.gz | 7.0 KiB | a07f43a811e151abdbc47f7d73a8130a30ff28cd389c2574d7d959895fa90e70 |
golang-github-alecthomas-repr_0.1.0-1.debian.tar.xz | 3.1 KiB | 4e1ee4384da4114bb3b987ce8fef3b64fa4a3d4ba4ff29130c4a3157b10985b7 |
Available diffs
No changes file available.
Binary packages built by this source
- golang-github-alecthomas-repr-dev: 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}}