我需要在塔雷亚角做小站,成为名单阿·德塔纳斯的协调人,但不是工作。 页: 1
type Tarea struct {
nombre string
duracion float32
subtareas *ListaDeTareas
}
type ListaDeTareas[T Tarea] struct {
elementos listadetareas.LinkedList[Tarea]
}
我需要在塔雷亚角做小站,成为名单阿·德塔纳斯的协调人,但不是工作。 页: 1
type Tarea struct {
nombre string
duracion float32
subtareas *ListaDeTareas
}
type ListaDeTareas[T Tarea] struct {
elementos listadetareas.LinkedList[Tarea]
}
看来,在<代码>ListaDeTareas中,你没有使用类型的参数。 删除后将解决这一问题。
type Tarea struct {
nombre string
duracion float32
subtareas *ListaDeTareas
}
type ListaDeTareas struct {
elementos listadetareas.LinkedList[Tarea]
}
What is the difference between Go s multithreading approach and other approaches, such as pthread, boost::thread or Java Threads?
Does anyone know approximately what the minimum work size is needed in order for a goroutine to be beneficial (assuming that there are free cores for the work to be offloaded to)?
How do I get the terminal size in Go. In C it would look like this: struct ttysize ts; ioctl(0, TIOCGWINSZ, &ts); But how to i access TIOCGWINSZ in Go
I know its a bit too early, but I ve been trying out Go (Google s Programming Language) and its kindof annoying to write code in gedit. So, my question: What do you use to experiment with Go?
All the examples I ve seen so far involve blocking to get the result (via the <-chan operator). My current approach involves passing a pointer to a struct: type goresult struct { result ...
One of Go s slogans is Do not communicate by sharing memory; instead, share memory by communicating. I am wondering whether Go allows two different Go-compiled binaries running on the same machine to ...
What is your opinion of this design decision? What advantages does it have and what disadvantages? Links: Embedding description
Does Google s Golang address the problems with languages addressed in Paul s Graham s post Why Arc isn t Especially Object Oriented ?