일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SHA512
- Android
- AES
- Reflect
- web
- program
- design pattern
- ChromeTab
- SHA1
- type_traits
- kotlin
- Functional
- Observer
- WebView
- traits
- sprintf
- haskell
- Scala
- sha256
- async
- CustomTab
- Clojure
- Chrono
- ranges
- RAII
- go
- template
- stringprintf
- c++
- coroutines
- Today
- Total
프로그래밍 검색 블로그
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..
package main import ( "archive/zip" "io" "io/ioutil" "os" "path/filepath" ) // ZipDir 폴더를 지정해서 그 폴더 안에 있는 파일들을 // saveFile에 저장합니다 // error nil 압축성공 // 그외: 압축 실패 func ZipDir(saveFile *os.File, savePath string) error { zipWriter := zip.NewWriter(saveFile) defer zipWriter.Close() z := zipType{zipWriter} return z.dir(savePath, "") } func main() { //실행 파일과 같은 위치에 있는 test폴더 안에 있는 요소를 //result.zip으로 압축..
코틀린 베타로 비동기 관련 Api 가 추가되었다 문법으로는 C#의 async/await의 코틀린식 구현이라고 볼수 있다 베타를 비동기 Api를 사용하기 위해 그레들 설정부터 보자면현재 코틀린 버전을 1.2.21 혹은 그 이상으로 맞춰준다 1ext.kotlin_version = '1.2.21'cs dependencies에 코루틴 api 를 추가한다현재는 베타라서 필요하지만 미래에는 필요 없을수도 있다 1compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:0.22.2"cs 1. 비동기 API async 는 비동기로 동작하고 블럭 안에 있는 것을 비동기로 수행한다간단하게 textview 글자를 바꿔주는걸로 시작해본다 launch 도 비슷한 기능을 수행하지만 코틀린..