2019๋ 11์ 30์ผ
chromedp ํจํค์ง์ ์ ์ฒด๋ฅผ ํ์ ํ๊ธฐ ์ํด ํต์ฌ ํ์ ์ ์ค์ฌ์ผ๋ก ์ค๋ช ์ ๋ฆฌ
ํ๋ฆ์ ํฐ ์ค๊ธฐ์์ ์์ํ์ฌ ์์ ์ค๊ธฐ์ ๋ง๋จ์ ์ด๋ฅด๋ ์์๋ก ๊ตฌ์ฑํจ
| { | |
| "manifest_version": 2, | |
| "name": "Orange frame with distinguishable gray tabs", | |
| "version": "0.1", | |
| "theme": { | |
| "colors": { | |
| "background_tab": [ 210, 213, 217 ], | |
| "background_tab_inactive": [ 213, 215, 220 ], | |
| "background_tab_incognito": [ 38, 39, 42 ], | |
| "background_tab_incognito_inactive": [ 53, 56, 58 ], |
| package main | |
| import ( | |
| "unsafe" | |
| "github.com/nanitefactory/memory" | |
| "github.com/nanitefactory/outputdbg" | |
| ) | |
| // #include <windows.h> |
| sum := func(nums ...float64) float64 { | |
| ret := 0.0 | |
| for _, num := range nums { | |
| ret += num | |
| } | |
| return ret | |
| } |
| package main | |
| func multipleRets() (int, int, int, int) { | |
| return 11, 22, 33, 44 | |
| } | |
| func main() { | |
| s1 := append([]int{}, []int{11, 22, 33, 44}...) // This is fine. | |
| s2 := append([]int{}, multipleRets()) // But this one errors. | |
| s3 := append([]int{}, toSlice(multipleRets())...) // Getting through it. |
| <?xml version="1.0" encoding="us-ascii"?> | |
| <Components> | |
| <DataComponent Type="gada">GameData</DataComponent> | |
| <DataComponent Type="text" Locale="enUS">GameText</DataComponent> | |
| <DataComponent Type="info">DocumentInfo</DataComponent> | |
| <DataComponent Type="mapi">MapInfo</DataComponent> | |
| <DataComponent Type="trig">Triggers</DataComponent> | |
| <DataComponent Type="terr">t3Terrain.xml</DataComponent> | |
| <DataComponent Type="plob">Objects</DataComponent> | |
| <DataComponent Type="attr">Attributes</DataComponent> |
| package main | |
| import ( | |
| "context" | |
| "io/ioutil" | |
| "log" | |
| "math" | |
| "time" | |
| "github.com/chromedp/cdproto/emulation" |
| package main | |
| import ( | |
| "database/sql" | |
| "log" | |
| _ "github.com/mattn/go-sqlite3" | |
| ) | |
| func main() { |
| package main | |
| import "log" | |
| func foo1(n int) int { | |
| log.Println("foo1", n) | |
| return n | |
| } | |
| func foo2(n int) int { | |
| log.Println("foo2", n) |