18 lines
253 B
Go
18 lines
253 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"fmt"
|
||
|
"os"
|
||
|
|
||
|
"github.com/a-h/templ/storybook/example"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
s := example.Storybook()
|
||
|
if err := s.ListenAndServeWithContext(context.Background()); err != nil {
|
||
|
fmt.Println(err.Error())
|
||
|
os.Exit(1)
|
||
|
}
|
||
|
}
|