Binary package “golang-github-alecthomas-repr-dev” in ubuntu lunar
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.
S: "String",
I: 123,
A: []int{1, 2, 3},
})
}
.
Outputs
.
&main.test{S: "String", I: 123, A: []int{1, 2, 3}}
Published versions
- golang-github-alecthomas-repr-dev 0.1.1-1 in amd64 (Proposed)
- golang-github-alecthomas-repr-dev 0.1.1-1 in amd64 (Release)
- golang-github-alecthomas-repr-dev 0.1.1-1 in arm64 (Proposed)
- golang-github-alecthomas-repr-dev 0.1.1-1 in arm64 (Release)
- golang-github-alecthomas-repr-dev 0.1.1-1 in armhf (Proposed)
- golang-github-alecthomas-repr-dev 0.1.1-1 in armhf (Release)
- golang-github-alecthomas-repr-dev 0.1.1-1 in i386 (Proposed)
- golang-github-alecthomas-repr-dev 0.1.1-1 in i386 (Release)
- golang-github-alecthomas-repr-dev 0.1.1-1 in ppc64el (Proposed)
- golang-github-alecthomas-repr-dev 0.1.1-1 in ppc64el (Release)
- golang-github-alecthomas-repr-dev 0.1.1-1 in riscv64 (Proposed)
- golang-github-alecthomas-repr-dev 0.1.1-1 in riscv64 (Release)
- golang-github-alecthomas-repr-dev 0.1.1-1 in s390x (Proposed)
- golang-github-alecthomas-repr-dev 0.1.1-1 in s390x (Release)