style(context): remove empty lines before GetInt16, GetIntSlice, and GetStringMapString methods

- Remove unnecessary empty lines in the context.go file
- Improve code readability and consistency

Signed-off-by: flc1125 <four_leaf_clover@foxmail.com>
This commit is contained in:
flc1125 2025-05-21 19:14:09 +08:00
parent ab148b997a
commit 3d8e4e928a

View File

@ -319,7 +319,6 @@ func (c *Context) GetInt8(key any) (i8 int8) {
return getTyped[int8](c, key) return getTyped[int8](c, key)
} }
// GetInt16 returns the value associated with the key as an integer 16. // GetInt16 returns the value associated with the key as an integer 16.
func (c *Context) GetInt16(key any) (i16 int16) { func (c *Context) GetInt16(key any) (i16 int16) {
return getTyped[int16](c, key) return getTyped[int16](c, key)
@ -380,7 +379,6 @@ func (c *Context) GetDuration(key any) (d time.Duration) {
return getTyped[time.Duration](c, key) return getTyped[time.Duration](c, key)
} }
// GetIntSlice returns the value associated with the key as a slice of integers. // GetIntSlice returns the value associated with the key as a slice of integers.
func (c *Context) GetIntSlice(key any) (is []int) { func (c *Context) GetIntSlice(key any) (is []int) {
return getTyped[[]int](c, key) return getTyped[[]int](c, key)
@ -454,7 +452,6 @@ func (c *Context) GetStringMap(key any) (sm map[string]any) {
return getTyped[map[string]any](c, key) return getTyped[map[string]any](c, key)
} }
// GetStringMapString returns the value associated with the key as a map of strings. // GetStringMapString returns the value associated with the key as a map of strings.
func (c *Context) GetStringMapString(key any) (sms map[string]string) { func (c *Context) GetStringMapString(key any) (sms map[string]string) {
return getTyped[map[string]string](c, key) return getTyped[map[string]string](c, key)