ChromeのGoogle拡張で使っているエンドポイントを使えば翻訳結果を取得できる
curl -s "https://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=ja&dt=t&q=hello"| # Get editor completions based on the config schema | |
| "$schema" = 'https://starship.rs/config-schema.json' | |
| # Inserts a blank line between shell prompts | |
| add_newline = false | |
| format = """ | |
| $hostname\ | |
| $username\ | |
| $directory\ |
| package main | |
| import ( | |
| "bytes" | |
| "context" | |
| "encoding/base64" | |
| "fmt" | |
| "log" | |
| "github.com/aws/aws-sdk-go/aws" |
| new WebSocket("ws://localhost:1323/ws", ["hello", "world"]) |
ChromeのGoogle拡張で使っているエンドポイントを使えば翻訳結果を取得できる
curl -s "https://translate.googleapis.com/translate_a/single?client=gtx&sl=en&tl=ja&dt=t&q=hello"https://github.com/neovim/neovim/wiki/Building-Neovim#build-prerequisites
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title></title> | |
| <script src="https://cdn.jsdelivr.net/npm/vue"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.2/axios.js"></script> | |
| </head> | |
| <body> | |
| <div id="app"> |
| package main | |
| import ( | |
| "context" | |
| "log" | |
| "os" | |
| "github.com/docker/docker/api/types" | |
| "github.com/docker/docker/client" | |
| streamer "github.com/skanehira/docker-streamer" |
| package main | |
| import "testing" | |
| func BenchmarkMapStruct(b *testing.B) { | |
| m := map[int]interface{}{ | |
| 0: 0, | |
| } | |
| for i := 0; i < b.N; i++ { |
| package main | |
| import ( | |
| "encoding/json" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "testing" | |
| ) |