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
- ChromeTab
- AES
- sprintf
- design pattern
- Scala
- coroutines
- RAII
- Clojure
- template
- CustomTab
- Chrono
- stringprintf
- Functional
- WebView
- type_traits
- Reflect
- go
- SHA512
- Android
- traits
- SHA1
- async
- sha256
- web
- haskell
- ranges
- Observer
- c++
- program
- kotlin
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