golang-github-alecthomas-repr 0.4.0-1 source package in Ubuntu
Changelog
golang-github-alecthomas-repr (0.4.0-1) unstable; urgency=medium * New upstream version 0.4.0 -- Anthony Fok <email address hidden> Sun, 24 Mar 2024 20:27:38 -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 | |
---|---|---|---|---|
Oracular | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
golang-github-alecthomas-repr_0.4.0-1.dsc | 2.2 KiB | bed776b2042a86ce9a846f03116d516471e6c1132bc414d2b8d5faf6674d3ec0 |
golang-github-alecthomas-repr_0.4.0.orig.tar.gz | 8.3 KiB | ef3735aab84543f85667bc9bf0697200f1afdfd7ec7c75ce0c4c29b400fa0c09 |
golang-github-alecthomas-repr_0.4.0-1.debian.tar.xz | 3.2 KiB | 22a48cc4eec0cb553b6f73b2749b7b00a89558c8ccd240e617628961df5460e9 |
Available diffs
- diff from 0.2.0-1 to 0.4.0-1 (3.7 KiB)
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}}