Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit855f4d3

Browse files
committed
Stop using pointers for nested config structs,closes#41
1 parent540efa0 commit855f4d3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

‎config/config.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ type Config struct {
1515
HexIPbool
1616
VerifyCertificatesbool`mapstructure:"verify_certificates"`
1717
Headersmap[string]string
18-
Defaults*Defaults
19-
HTTPS*HTTPS
20-
LetsEncrypt*LetsEncrypt
18+
DefaultsDefaults
19+
HTTPSHTTPS
20+
LetsEncryptLetsEncrypt
2121
}
2222

2323
typeDefaultsstruct {
@@ -36,7 +36,7 @@ type HTTPS struct {
3636
Portstring
3737
Certstring
3838
Keystring
39-
HSTS*HSTS
39+
HSTSHSTS
4040
}
4141

4242
typeHSTSstruct {

‎server/index_data.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (d *Dispatch) getIndexData(r *http.Request, path string, state *State) *ind
4747
cfg:=d.Config()
4848

4949
data:=indexData{
50-
Defaults:cfg.Defaults,
50+
Defaults:&cfg.Defaults,
5151
HexIP:cfg.HexIP,
5252
Version:dispatchVersion{
5353
Tag:version.Tag,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp