https://twitter.com/CreatorQsF/status/1300135251516092416
http://var.blog.jp/archives/75246136.html
普通に JSON.stringify を使って、 tuple に限らず Object を string にしてkeyに設定する
| import { t } from './tailwind-to-vars.ts' | |
| export const Component = ( | |
| <div classes={[t.font-sans, t.w-('8px'), t.text-shade-100, t.bg-shade-100, t.hover(t.bg-shade-100, t.text-shade-0)]}> | |
| </div> | |
| ) |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "path/filepath" | |
| "strings" | |
| ) | |
| type Input struct { |
https://twitter.com/CreatorQsF/status/1300135251516092416
http://var.blog.jp/archives/75246136.html
普通に JSON.stringify を使って、 tuple に限らず Object を string にしてkeyに設定する
| /** @jsx jsx */ | |
| import { jsx } from '@emotion/core' | |
| import { BrowserRouter, Route, Switch } from 'react-router-dom' | |
| import { render } from 'react-dom' | |
| import { App } from './app' | |
| render( | |
| <BrowserRouter> | |
| <Switch> | |
| <Route exact path="/"> |
| package main | |
| import ( | |
| "fmt" | |
| "sort" | |
| ) | |
| func main() { | |
| s := []int{2, 1, 3, 4} | |
| sort.SliceStable(s, func(i, j int) bool { |
| package main | |
| func main() { | |
| println("hello world") | |
| } |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <title></title> | |
| <style> | |
| body { | |
| display: flex; |
| 今宵の月はどうでしょう。こんばんは、[@CreatorQsF](https://de-liker.com/about.html)です。 |
| * { | |
| letter-spacing: 14px; | |
| } |
| package main | |
| func main() { | |
| s := &[]int{} | |
| *s = append(*s, 2) | |
| for _, v := range *s { | |
| println(v) | |
| } | |
| t := &[]int{} | |
| for _, v := range *t { |