mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
13 lines
127 B
Go
13 lines
127 B
Go
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
s := make([]interface{}, 0)
|
|
s = append(s, 1)
|
|
fmt.Println(s[0])
|
|
}
|
|
|
|
// Output:
|
|
// 1
|