Skip to content

Instantly share code, notes, and snippets.

@podhmo
podhmo / x.py
Created February 7, 2023 14:15
View x.py
def run():
from flake8.options.parse_args import parse_args
plugins, namespace = parse_args([])
print("plugins")
for p in plugins:
print("\t", p)
print("")
View Makefile
doc:
go run . > openapi.json
View main.go
package main
import (
"fmt"
"reflect"
reflectshape "github.com/podhmo/reflect-shape"
)
type Person struct {
View main.go
package main
import (
"fmt"
"reflect"
)
func Foo(int) {}
func Bar(int) {}
@podhmo
podhmo / main.go
Last active January 7, 2023 06:30
View main.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"log"
"strings"
)
View main.go
package main
import (
"bytes"
"encoding/json"
"fmt"
)
type S struct {
Name string `json:"name"`
View main.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"os"
)
// https://swagger.io/docs/specification/data-models/oneof-anyof-allof-not/
@podhmo
podhmo / main.go
Last active January 7, 2023 05:50
View main.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"os"
"reflect"
"sync"
)
@podhmo
podhmo / type.go
Last active December 29, 2022 13:55
View type.go
package nullable
import (
"bytes"
"database/sql/driver"
"encoding/json"
"fmt"
"reflect"
"time"
_ "unsafe"
View client_test.go
package fakeclient_test
import (
"bytes"
"encoding/json"
"fmt"
"log"
"net/http"
"net/http/httptest"
"testing"