The previous type checking was off and did not do untyped type conversion. This endeavours to fix this with better type checking in its own type.
13 lines
116 B
Go
13 lines
116 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
t := make([]byte, 2)
|
|
t[0] = '$'
|
|
fmt.Println(t)
|
|
}
|
|
|
|
// Output:
|
|
// [36 0]
|