golang-github-alecthomas-repr 0.2.0-1 source package in Ubuntu
Changelog
golang-github-alecthomas-repr (0.2.0-1) unstable; urgency=medium * New upstream version 0.2.0 * Bump dependency of golang-any to (>= 2:1.18~) as per go.mod since v0.1.1 -- Anthony Fok <email address hidden> Mon, 06 Mar 2023 10:52:06 -0700
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 | |
---|---|---|---|---|
Noble | release | universe | misc | |
Mantic | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
golang-github-alecthomas-repr_0.2.0-1.dsc | 2.2 KiB | ee33c347051dbcc11df77099362807ea09078085b01de13b8b977b58265502c1 |
golang-github-alecthomas-repr_0.2.0.orig.tar.gz | 7.3 KiB | ecab1a22e78225a1916d9307d90edec85dd9996f8145252f0f0099bbca1042d7 |
golang-github-alecthomas-repr_0.2.0-1.debian.tar.xz | 3.2 KiB | 9b1826f6d2a2c7ec66c0a2f2dfd5e18f86ea4881978696ae839425ef59df7de3 |
Available diffs
- diff from 0.1.1-1 to 0.2.0-1 (2.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}}