mushahiroyuki / gowebprog Goto Github PK
View Code? Open in Web Editor NEWGoプログラミング実践入門 例題
Goプログラミング実践入門 例題
ソースファイルの手順に誤記があったので、細かいですが報告いたします。
該当箇所:ch07/14web_service/server.goの8行目
誤:$ ./10web_service &
正:$ ./14web_service &
すみません低レベルの質問で恐縮なのですが、教えていただけませんでしょうか。
<質問>
index.htmlの {{ .User.Name }}
はどこから渡しているのでしょうか?
Thread.UserIdとUser.Idを紐づけているとは思うのですが、Threads()を見返してみてもどこでjoinさせてるのかわからなかったもので。
https://github.com/mushahiroyuki/gowebprog/blob/46faa1da9ae329950ec5f94d903a3165646e9085/ch02/chitchat/data/thread.go#L92:L106
書籍 (2020年8月11日 初版第2刷) 記載内容 P141 L9
(組み込み関数) "一覧については, パッケージ fmt のドキュメント参照"
おそらく, text/template もしくは html/template の誤りでしょうか
https://pkg.go.dev/text/template#hdr-Functions
https://github.com/mushahiroyuki/gowebprog/blob/master/ch07/14web_service/server.go#L29
すみません、少々気になったのですが、ここ "127.0.0.1:8080"っとIPなしでOKでしょうか?
動くと思いますが、ほかのファイルとの整合性でいいのかなと。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.