StackOverflow Questions for Tag: go-reflect

danny
danny

Reputation: 10493

Type converting slices of interfaces

Score: 313

Views: 187552

Answers: 10

Read More
Mat Ryer
Mat Ryer

Reputation: 4047

How do you create a new instance of a struct from its type at run time in Go?

Score: 104

Views: 107956

Answers: 6

Read More
kostya
kostya

Reputation: 27

Reading nested structure using reflection

Score: 1

Views: 2704

Answers: 2

Read More
nvcnvn
nvcnvn

Reputation: 5175

Call a Struct and its Method by name in Go?

Score: 41

Views: 56329

Answers: 5

Read More
leiyonglin
leiyonglin

Reputation: 6814

How to compare if two structs, slices or maps are equal?

Score: 227

Views: 288546

Answers: 7

Read More
Aryan Mehrotra
Aryan Mehrotra

Reputation: 161

Can i have a logic which imports a package if it exists in the source code?

Score: -3

Views: 53

Answers: 1

Read More
Thomas
Thomas

Reputation: 8978

In Go, how can I make a generic function with slices?

Score: 7

Views: 6729

Answers: 4

Read More
omninonsense
omninonsense

Reputation: 6892

Iterate through the fields of a struct in Go

Score: 202

Views: 308016

Answers: 8

Read More

compare and copy one instance of the same go struct to another updated instance

Score: 1

Views: 30

Answers: 0

Read More
dominic
dominic

Reputation: 147

How to get size of struct containing data structures in Go?

Score: 4

Views: 4429

Answers: 2

Read More
Wei Wong
Wei Wong

Reputation: 125

what does reflect.TypeOf((*error)(nil)).Elem()` mean?

Score: 5

Views: 1816

Answers: 1

Read More
luisepa1420
luisepa1420

Reputation: 77

Determining the type of an interface {} value returned from a function in Golang

Score: 0

Views: 98

Answers: 1

Read More
Chance
Chance

Reputation: 11323

How to use reflect to set the value of a map on a struct?

Score: 1

Views: 2817

Answers: 1

Read More
Karthik Prasad
Karthik Prasad

Reputation: 10034

How create type using reflect having pointer receivers

Score: 0

Views: 38

Answers: 1

Read More
skylark
skylark

Reputation: 41

Render table in html template where table-data are keys and values of some json data in Golang

Score: 2

Views: 598

Answers: 1

Read More
cc young
cc young

Reputation: 20255

Using reflect, how do you set the value of a struct field?

Score: 148

Views: 160000

Answers: 3

Read More
user1722361
user1722361

Reputation: 427

Declare type dynamically in GoLang

Score: -2

Views: 93

Answers: 1

Read More
Charlie Clarke
Charlie Clarke

Reputation: 306

How to create a new instance of a struct that is read from file

Score: 2

Views: 155

Answers: 0

Read More
Nicolas BADIA
Nicolas BADIA

Reputation: 5852

Access struct property by name

Score: 114

Views: 157063

Answers: 5

Read More
Rahul
Rahul

Reputation: 11679

How to find the type of an object in Go?

Score: 593

Views: 688000

Answers: 16

Read More
PreviousPage 1Next