AllIsHackedOff

Just a memo, just a progress

Golang

Firebase Authから返ってくるJWTをゴニョゴニョする (2)

前回の記事 allishackedoff.hatenablog.com の続きです。引き続きゴニョゴニョします。 JWTをDecodeする golangのJWTのライブラリは github.com が最も使われているようです。 otiai10.hatenablog.com christina04.hatenablog.com この辺りでも利用されてい…

net/http触り直し(1)

GolangでWAFを使わなくても問題ない的な話が年末上がっていたのと(advent calendar界隈で)自分的にもそう思ったので RequestのBodyやらHeaderやらを適当にParseする方法を復習がてらメモ。 package main import ( "fmt" "log" "net/http" "github.com/dave…

Goでgitリポジトリを操作しようと軽くトライした話

はじめに PerlやRubyで色々ツールを作っていた頃 Git::Repository - search.cpan.org GitHub - schacon/ruby-git: Ruby/Git is a Ruby library that can be used to create, read and manipulate Git repositories by wrapping system calls to the git bina…

【翻訳】【Golang】標準的なパッケージのレイアウト

Golangレベルアップしたいので色々な記事を翻訳して整理してみようと思った(会社でもそういう試みをやっているので真似っこです) Standard Package Layout — Medium vendoring、Generics。Goコミュニティではこれらは大きな問題とみなされてきた。そしてほ…