際際滷

際際滷Share a Scribd company logo
present !!
Go #6
13 May 2017
Yutaka Kato
DXC Technology
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 ( )
$ present
% (present ) xxx.slide
?
1 Jan 2017
Tags: golang, present
email@example.com
https://golang.org/
@twitter
*
& xxx.slide
"
" .article ( )
"
?
- 1
- 2
( 2 )
_ _
* *
` `
" '
Unicode (
:
getemoji.com(http://getemoji.com)
?
.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 -
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
`: xxx`
:
:
present -notes=true N
-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
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
( )
*
github.com/davelaursen/present-plus(https://github.com/davelaursen/present-plus)
( )
?
1100x700
? Playground
Playground
Native Client (-nacl=true)
blog.golang.org/playground(https://blog.golang.org/playground)
?
? PDF
PDF Chrome
( ) Chrome PDF
?
Thank you
Yutaka Kato
DXC Technology
https://github.com/mikan(https://github.com/mikan)

More Related Content

Present て?スライト?を恬ろう