this repo has no description

fix: export DidDocument fields

+13 -13
+1 -1
Makefile
··· 3 3 bin/mostliked: cmd/mostliked/main.go pkg/mostliked/handler.go db/mostliked/*.go pkg/feeds/*.go 4 4 go build -o $@ ./cmd/mostliked 5 5 6 - bin/feedweb: cmd/feedweb/main.go pkg/*/generator.go db/*/*.go pkg/feeds/*.go 6 + bin/feedweb: cmd/feedweb/*.go pkg/*/generator.go db/*/*.go pkg/feeds/*.go 7 7 go build -o $@ ./cmd/feedweb 8 8 9 9 .PHONY: clean
+12 -12
cmd/feedweb/did.go
··· 9 9 const NgrokHostname = "routinely-right-barnacle.ngrok-free.app" 10 10 11 11 type DidDocument struct { 12 - context []string `json:"@context"` 13 - id string `json:"id"` 14 - services []DidService `json:"service"` 12 + Context []string `json:"@context"` 13 + ID string `json:"id"` 14 + Services []DidService `json:"service"` 15 15 } 16 16 17 17 type DidService struct { 18 - id string `json:"id"` 19 - serviceType string `json:"type"` 20 - serviceEndpoint string `json:"serviceEndpoint"` 18 + ID string `json:"id"` 19 + ServiceType string `json:"type"` 20 + ServiceEndpoint string `json:"serviceEndpoint"` 21 21 } 22 22 23 23 func didDoc(c echo.Context) error { 24 24 doc := DidDocument{ 25 - context: []string{"https://www.w3.org/ns/did/v1"}, 26 - id: `did:web:` + NgrokHostname, 27 - services: []DidService{ 25 + Context: []string{"https://www.w3.org/ns/did/v1"}, 26 + ID: `did:web:` + NgrokHostname, 27 + Services: []DidService{ 28 28 DidService{ 29 - id: "#bsky_fg", 30 - serviceType: "BskyFeedGenerator", 31 - serviceEndpoint: `https://` + NgrokHostname, 29 + ID: "#bsky_fg", 30 + ServiceType: "BskyFeedGenerator", 31 + ServiceEndpoint: `https://` + NgrokHostname, 32 32 }, 33 33 }, 34 34 }