mirror of
https://github.com/php/frankenphp.git
synced 2026-03-23 16:42:13 +01:00
chore: run go fmt (#2211)
A few files were not formatted correctly. Signed-off-by: Robert Landers <landers.robert@gmail.com> Co-authored-by: Marc <m@pyc.ac>
This commit is contained in:
@@ -25,7 +25,7 @@ func TestEnsureLeadingSlash(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.input + "-" + tt.expected, func(t *testing.T) {
|
||||
t.Run(tt.input+"-"+tt.expected, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
assert.Equal(t, tt.expected, ensureLeadingSlash(tt.input), "ensureLeadingSlash(%q)", tt.input)
|
||||
|
||||
@@ -6,8 +6,9 @@ import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
var (
|
||||
wd string
|
||||
wd string
|
||||
wderr error
|
||||
)
|
||||
|
||||
@@ -38,4 +39,3 @@ func FastAbs(path string) (string, error) {
|
||||
|
||||
return filepath.Join(wd, path), nil
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ type State int
|
||||
|
||||
const (
|
||||
// lifecycle States of a thread
|
||||
Reserved State = iota
|
||||
Reserved State = iota
|
||||
Booting
|
||||
BootRequested
|
||||
ShuttingDown
|
||||
|
||||
@@ -13,7 +13,6 @@ func main() {
|
||||
ctx := context.Background()
|
||||
logger := slog.New(slog.NewTextHandler(os.Stdout, nil))
|
||||
|
||||
|
||||
if err := frankenphp.Init(frankenphp.WithContext(ctx), frankenphp.WithLogger(logger)); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user