mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-12 01:12:27 +08:00
update vendor and use single static
This commit is contained in:
@@ -64,7 +64,7 @@ type Config struct {
|
||||
CertFile string
|
||||
KeyFile string
|
||||
AutoCert bool
|
||||
Domains []string
|
||||
Domain string
|
||||
}
|
||||
Twitter struct { // twitter信息
|
||||
Card string
|
||||
|
||||
@@ -2,15 +2,11 @@
|
||||
package setting
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
func TestInit(t *testing.T) {
|
||||
data, err := json.Marshal(Conf)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
t.Log(string(data))
|
||||
assert.NotNil(t, Conf)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user