ZhangZhihui's Blog |
|
||
2024年11月15日
摘要:
zzh@ZZHPC:/zdata/Github/greenlight$ docker pull postgres zzh@ZZHPC:/zdata/Github/greenlight$ docker run --name postgres17 -p 5432:5432 -e POSTGRES_USE 阅读全文
摘要:
package main import ( "fmt" ) type A struct { field1 string } type B struct { field1 string } func main() { a := A{ field1: "aaa", } b := B(a) fmt.Pri 阅读全文
摘要:
func (app *application) exampleHandler(w http.ResponseWriter, r *http.Request) { var input struct { Foo string `json:"foo"` } // Use io.ReadAll() to r 阅读全文
摘要:
阅读全文
2024年11月14日
摘要:
阅读全文
摘要:
func (app *application) writeJSON(w http.ResponseWriter, status int, data envelope, headers http.Header) error { js, err := json.MarshalIndent(data, " 阅读全文
摘要:
We’re going to use the popular third-party package httprouter as the router for our application, instead of using http.ServeMux from the standard-libr 阅读全文
摘要:
API versioning APIs which support real-world businesses and users often need to change their functionality and endpoints over time — sometimes in a ba 阅读全文
摘要:
{ "workbench.startupEditor": "none", "[go]": { "editor.insertSpaces": true, "editor.formatOnSave": false }, "editor.fontSize": 16, "terminal.integrate 阅读全文
摘要:
Method URL Pattern Action GET /v1/healthcheck Show application health and version informationGET /v1/movies Show the details of all moviesPOST /v1/mov 阅读全文
|
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |