fork from d7z-project/caddy-gitea-pages
This commit is contained in:
parent
50a258ea59
commit
9d86fd33c6
86 changed files with 2452 additions and 4500 deletions
19
pages/buf.go
Normal file
19
pages/buf.go
Normal file
|
@ -0,0 +1,19 @@
|
|||
package pages
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
)
|
||||
|
||||
type ByteBuf struct {
|
||||
*bytes.Buffer
|
||||
}
|
||||
|
||||
func NewByteBuf(byte []byte) *ByteBuf {
|
||||
return &ByteBuf{
|
||||
bytes.NewBuffer(byte),
|
||||
}
|
||||
}
|
||||
|
||||
func (b ByteBuf) Close() error {
|
||||
return nil
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue