Skip to content

danil/structreflectexample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Struct reflect example for Go

Build Status Go Reference

Source files are distributed under the BSD-style license.

About

The software is considered to be at a alpha level of readiness, its extremely slow and allocates a lots of memory.

Benchmark

go test -count=1 -race -bench=. -benchmem ./...
goos: linux
goarch: amd64
pkg: github.com/danil/structreflectexample
cpu: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
BenchmarkReflect/reflect-8          1000000000           0.0000169 ns/op           0 B/op          0 allocs/op
BenchmarkMarshal/marshal-8          1000000000           0.0000176 ns/op           0 B/op          0 allocs/op
PASS
ok      github.com/danil/structreflectexample   0.027s

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages