Skip to content

Commit d2a5c3d

Browse files
committed
update Copyright
1 parent 9272626 commit d2a5c3d

38 files changed

+64
-60
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2016 HenryLee
189+
Copyright 2022 AndeyaLee
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

acceptencoder/acceptencoder.go

+13-13
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414
//
15-
// modified by HenryLee 2016.11.11
15+
// modified by AndeyaLee 2016.11.11
1616

1717
package acceptencoder
1818

@@ -29,13 +29,13 @@ import (
2929
)
3030

3131
var (
32-
//Default size==20B same as nginx
32+
// Default size==20B same as nginx
3333
defaultGzipMinLength = 20
34-
//Content will only be compressed if content length is either unknown or greater than gzipMinLength.
34+
// Content will only be compressed if content length is either unknown or greater than gzipMinLength.
3535
gzipMinLength = defaultGzipMinLength
36-
//The compression level used for deflate compression. (0-9).
36+
// The compression level used for deflate compression. (0-9).
3737
gzipCompressLevel int
38-
//List of HTTP methods to compress. If not set, only GET requests are compressed.
38+
// List of HTTP methods to compress. If not set, only GET requests are compressed.
3939
includedMethods map[string]bool
4040
getMethodOnly bool
4141
)
@@ -65,7 +65,7 @@ type nopResetWriter struct {
6565
}
6666

6767
func (n nopResetWriter) Reset(w io.Writer) {
68-
//do nothing
68+
// do nothing
6969
}
7070

7171
type acceptEncoder struct {
@@ -98,9 +98,9 @@ func (ac acceptEncoder) put(wr resetWriter, level int) {
9898
}
9999
wr.Reset(nil)
100100

101-
//notice
102-
//compressionLevel==BestCompression DOES NOT MATTER
103-
//sync.Pool will not memory leak
101+
// notice
102+
// compressionLevel==BestCompression DOES NOT MATTER
103+
// sync.Pool will not memory leak
104104

105105
switch level {
106106
case gzipCompressLevel:
@@ -119,10 +119,10 @@ var (
119119
bestCompressionPool: &sync.Pool{New: func() interface{} { wr, _ := gzip.NewWriterLevel(nil, flate.BestCompression); return wr }},
120120
}
121121

122-
//according to the sec :http://tools.ietf.org/html/rfc2616#section-3.5 ,the deflate compress in http is zlib indeed
123-
//deflate
124-
//The "zlib" format defined in RFC 1950 [31] in combination with
125-
//the "deflate" compression mechanism described in RFC 1951 [29].
122+
// according to the sec :http://tools.ietf.org/html/rfc2616#section-3.5 ,the deflate compress in http is zlib indeed
123+
// deflate
124+
// The "zlib" format defined in RFC 1950 [31] in combination with
125+
// the "deflate" compression mechanism described in RFC 1951 [29].
126126
deflateCompressEncoder = acceptEncoder{
127127
name: "deflate",
128128
levelEncode: func(level int) resetWriter { wr, _ := zlib.NewWriterLevel(nil, level); return wr },

apidoc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

apiware/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2016 HenryLee
189+
Copyright 2022 AndeyaLee
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

apiware/apiware.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

apiware/convert.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

apiware/doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
Package apiware provides a tools which can bind the http/fasthttp request params to the structure and validate.
33
4-
Copyright 2016 HenryLee. All Rights Reserved.
4+
Copyright 2022 AndeyaLee. All Rights Reserved.
55
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.

apiware/error.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

apiware/param.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

apiware/param_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

apiware/paramapi.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -35,17 +35,17 @@ type (
3535
ParamsAPI struct {
3636
name string
3737
params []*Param
38-
//used to create a new struct (non-pointer)
38+
// used to create a new struct (non-pointer)
3939
structType reflect.Type
40-
//the raw struct pointer
40+
// the raw struct pointer
4141
rawStructPointer interface{}
4242
// rawStructPointer value bytes
4343
defaultValues []byte
4444
// create param name from struct field name
4545
paramNameMapper ParamNameMapper
4646
// decode params from request body
4747
bodydecoder Bodydecoder
48-
//when request Content-Type is multipart/form-data, the max memory for body.
48+
// when request Content-Type is multipart/form-data, the max memory for body.
4949
maxMemory int64
5050
}
5151

apiware/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

config.go

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -103,13 +103,13 @@ type (
103103
GzipConfig struct {
104104
// if EnableGzip, compress response content.
105105
Enable bool `ini:"enable" comment:"Whether enabled or not"`
106-
//Content will only be compressed if content length is either unknown or greater than gzipMinLength.
107-
//Default size==20B same as nginx
106+
// Content will only be compressed if content length is either unknown or greater than gzipMinLength.
107+
// Default size==20B same as nginx
108108
MinLength int `ini:"min_length" comment:"The minimum length of content to be compressed"`
109-
//The compression level used for deflate compression. (0-9).
110-
//Non-file response Body's compression level is 0-9, but the files' always 9
109+
// The compression level used for deflate compression. (0-9).
110+
// Non-file response Body's compression level is 0-9, but the files' always 9
111111
CompressLevel int `ini:"compress_level" comment:"Non-file response Body's compression level is 0-9, but the files' always 9"`
112-
//List of HTTP methods to compress. If not set, only GET requests are compressed.
112+
// List of HTTP methods to compress. If not set, only GET requests are compressed.
113113
Methods []string `ini:"methods" delim:"|" comment:"List of HTTP methods to compress. If not set, only GET requests are compressed."`
114114
// StaticExtensionsToGzip []string
115115
}
@@ -277,7 +277,7 @@ func NewDefaultConfig() *Config {
277277
Enable: false,
278278
Provider: "memory",
279279
Name: "faygosessionID",
280-
CookieLifeSecond: 0, //set cookie default is the browser life
280+
CookieLifeSecond: 0, // set cookie default is the browser life
281281
GcLifeSecond: 300,
282282
MaxLifeSecond: 3600,
283283
ProviderConfig: "",

config_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

context.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

context_input.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

context_output.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

doc.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Package Faygo is a fast and concise Go Web framework that can be used to develop high-performance web app(especially API) with fewer codes;
33
Just define a struct Handler, Faygo will automatically bind/verify the request parameters and generate the online API doc.
44
5-
Copyright 2016 HenryLee. All Rights Reserved.
5+
Copyright 2022 AndeyaLee. All Rights Reserved.
66
77
Licensed under the Apache License, Version 2.0 (the "License");
88
you may not use this file except in compliance with the License.

ext/middleware/attachment.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

ext/middleware/cross_origin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

ext/middleware/html_suffix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

ext/middleware/ip_filter.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

ext/surfer/LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright 2015 HenryLee
189+
Copyright 2022 AndeyaLee
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

faygo.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

faygo_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

framework.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

fs.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

graceful_a.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
//go:build windows
12
// +build windows
3+
24
//
3-
// Copyright 2016 HenryLee. All Rights Reserved.
5+
// Copyright 2022 AndeyaLee. All Rights Reserved.
46
//
57
// Licensed under the Apache License, Version 2.0 (the "License");
68
// you may not use this file except in compliance with the License.

graceful_b.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
//go:build !windows
12
// +build !windows
3+
24
//
3-
// Copyright 2016 HenryLee. All Rights Reserved.
5+
// Copyright 2022 AndeyaLee. All Rights Reserved.
46
//
57
// Licensed under the Apache License, Version 2.0 (the "License");
68
// you may not use this file except in compliance with the License.

handler.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

helper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

log.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

mime.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

muxapi.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

response_writer.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -187,7 +187,7 @@ func (resp *Response) multiCommitted() {
187187
if resp.status == 200 {
188188
line := []byte("\n")
189189
e := []byte("\ngoroutine ")
190-
stack := make([]byte, 2<<10) //2KB
190+
stack := make([]byte, 2<<10) // 2KB
191191
runtime.Stack(stack, true)
192192
start := bytes.Index(stack, line) + 1
193193
stack = stack[start:]

server.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

swagger/swagger.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

syso_windows_386.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 HenryLee. All Rights Reserved.
1+
// Copyright 2022 AndeyaLee. All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)