Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- SHA1
- Observer
- Android
- WebView
- Functional
- template
- web
- Reflect
- traits
- program
- Chrono
- CustomTab
- SHA512
- go
- kotlin
- sprintf
- haskell
- stringprintf
- coroutines
- c++
- async
- Clojure
- ranges
- design pattern
- RAII
- ChromeTab
- type_traits
- AES
- Scala
- sha256
Archives
- Today
- Total
목록Reflect (1)
프로그래밍 검색 블로그
go reflect 호출
package main import ( "fmt" "reflect" ) type controller struct { } func (c controller) Foo(a int, b string) string { fmt.Println("Foo") return fmt.Sprint(a, b) } func (c controller) Koo(a int, b string) string { fmt.Println("Koo") return fmt.Sprint(a, b) } func (c controller) goo() { //private는 안보임 } //reflection으로 함수 호출할때는 일반 인자 대신 reflect.Value를 넣는다 func valueToReflectionArguments(args ...inte..
go
2018. 5. 15. 22:15