dj110

golang

Go file read

Example Read line one by one package main import ( "bufio" "fmt" "os" ) func main() { file, err := os.OpenF...
golang

Go goroutine and channel

go routine Go routine is golang lightweight parallel process function. Run function asynchronously. Example ...
golang

Go struct + method

Go struct can add method in Go struct is not class. But it becomes like class. Go struct can add method This is...
golang

Go struct

Go struct Go does not have class, struct plays similar role as class in other languages Go struct definition t...
golang

Go Server Response json

encoding/json This package support byte(string) <-> struct conversion. Next example shows how to create applic...
golang

Go Simple Server

net/http Support Http Server Simple Example package main import ( "fmt" "net/http" ) func request1(w http....
golang

Go String Json

Goal Convert string -> json (go struct, data) Convert json -> string encoding/json To handle json and...
Android

Android Drawer – Android X

Drawer Drawer is menu UI which is very common in Mobile App There is a hamburger button to open menu. ...
iOS

WKWebView Navigation

WKNavigationDelegate WKNavigationDelegate provides lifecycle hacks for WKWebView. We can interrupt navigation pro...
iOS

WKWebView Cookie manipulation

WKWebView Cookie Under iOS 11, it's difficult to manage cookies in WKWebView. WKWebView does not allow to handle ...