You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
361 B
36 lines
361 B
package main
|
|
|
|
import (
|
|
"aflds"
|
|
"fmt"
|
|
)
|
|
|
|
type (
|
|
|
|
S = struct {
|
|
A string
|
|
}
|
|
)
|
|
|
|
func Una () S {
|
|
fmt.Println("Es llamado ")
|
|
return S { A : "Un valiue" }
|
|
}
|
|
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
|
|
|
|
doInt := *aflds.NewDOFieldInt("Mi",func()int{ return 22 })
|
|
|
|
|
|
fmt.Printf("1 - %v\n",doInt.Value())
|
|
fmt.Printf("2 - %v\n",doInt.Value())
|
|
fmt.Printf("3 - %v\n",doInt.Value())
|
|
|
|
|
|
}
|