Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Present でスライドを作ろう

505 views

Published on

2017/5/13 に第6回横浜Go読書会で発表した資料の SlideShare バージョンです。Go言語標準のプレゼンテーションツール present の使い方を紹介します。
オリジナル (ブラウザ閲覧用) URL はこちら:
https://go-talks.appspot.com/github.com/mikan/talks/intro-to-present.slide

Published in: Software
  • Be the first to comment

  • Be the first to like this

Present でスライドを作ろう

  1. 1. present !! Go #6 13 May 2017 Yutaka Kato DXC Technology
  2. 2. present golang.org/x/tools/present Go talks (talks.golang.org) $ go get golang.org/x/tools/cmd/present $ ./bin/present & 2017/04/09 00:45:11 Open your web browser and visit http://127.0.0.1:3999 " 3999 ⚠ go doc golang.org/x/tools/present ( ) golang.org/x/tools/cmd/present ( )
  3. 3. $ present % (present ) xxx.slide ​ 1 Jan 2017 Tags: golang, present email@example.com https://golang.org/ @twitter * & xxx.slide "
  4. 4. " .article ( ) " ⚠
  5. 5. - 1 - 2 ( 2 ) _ _ * * ` ` " '
  6. 6. Unicode ( : getemoji.com(http://getemoji.com) ⚠
  7. 7. .code x.go /^func main/,/^}/ .play y.go .image image.jpg .background image.jpg .iframe http://foo .link http://foo label .html file.html .caption _Gopher_ by [[http://www.reneefrench.com][Renee French]] .code - ( ) .play - Go Playground .image / .video - ( 10 20 _ 300 px ) .background - .iframe / html - URL / HTML .link - URL .caption -
  8. 8. Let's play! gopl ch05/ex09 at mikan/go-training-course(https://github.com/mikan/go-training-course) 1 package main 2 3 import ( 4 "fmt" 5 "regexp" 6 ) 7 8 func main() { 9 text := "1 $foo 2 $bar 3 $baz 4" 10 fmt.Printf("input: %sn", text) 11 fmt.Printf("putput: %sn", expand(text, func(s string) string { return "[" + s + "]" })) 12 } 13 14 func expand(s string, f func(string) string) string { 15 r := regexp.MustCompile(`$w+`) 16 return r.ReplaceAllStringFunc(s, func(s string) string { return f(s[1:]) }) 17 } Run
  9. 9. `: xxx` : : present -notes=true N
  10. 10. -base="": -http="127.0.0.1:3999": HTTP -nacl=false: Native Client environment playground (Go ) -notes=false: ('N' ) -orighost="": host component of web origin URL ('localhost' ) -play=true: playground ( ) " Playground
  11. 11. go-talks.appspot.com(http://go-talks.appspot.com) GitHub slide article : http://go-talks.appspot.com/github.com/owner/project/file.ext http://go-talks.appspot.com/github.com/owner/project/sub/directory/file.ext " go-talks.appspot.com (article ) " .image raw.githubusercontent.com (.background ⁉) ⚠ .html
  12. 12. ( ) * github.com/davelaursen/present-plus(https://github.com/davelaursen/present-plus)
  13. 13. ( ) ❓ 1100x700 ❓ Playground Playground Native Client (-nacl=true) blog.golang.org/playground(https://blog.golang.org/playground) ❓ ❓ PDF PDF Chrome
  14. 14. ( ) Chrome PDF ⚠
  15. 15. Thank you Yutaka Kato DXC Technology https://github.com/mikan(https://github.com/mikan)

×