Skip to content

petr-korobeinikov/oto-showcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oto-showcase

An example of how to use oto:

Install

# outside of go.mod
go get github.com/pacedotdev/oto

Templates

wget

mkdir templates
wget https://raw.githubusercontent.com/pacedotdev/oto/master/otohttp/templates/server.go.plush -q -O ./templates/server.go.plush

curl

mkdir templates
curl -s https://raw.githubusercontent.com/pacedotdev/oto/master/otohttp/templates/server.go.plush > ./templates/server.go.plush

Generate

mkdir generated

oto -template ./templates/server.go.plush \
    -out ./generated/oto.gen.go \
    -ignore Ignorer \
    -pkg generated \
    ./definitions

# optional, but useful
gofmt -w ./generated/oto.gen.go ./generated/oto.gen.go

About

An example of how to use oto.

Topics

Resources

Stars

Watchers

Forks

Languages