Fiber v2.0.2 Release Notes

Release Date: 2020-09-19 // over 3 years ago
  • ๐Ÿ†• ๐Ÿ”ฅ New

    • โœ… ctx.WriteString appends s to response body. #810

      func (c *Ctx) WriteString(s string) (int, error)

    • utils.GetArgument checks if key is in arguments 803

      func GetArgument(arg string) bool

    โšก๏ธ ๐Ÿงน Updates

    • โšก๏ธ update csrf readme #798
    • ๐Ÿ‘Œ improve unit tests #806

    ๐Ÿฑ ๐Ÿฉน Fixes

    • bind master process to 1 thread when enabling prefork #800
    • accept time.Duration for cookie expiration in csrf

    ๐Ÿ‘Œ ๐Ÿš€ Improvements

    • ๐Ÿ‘Œ improve error handling chain/flow #812 โšก๏ธ show updated util benchmarks

      Benchmark_ToLowerBytes/fiber-164284765425.7 ns/op0 B/op0 allocs/opBenchmark_ToLowerBytes/fiber-164614319625.7 ns/op0 B/op0 allocs/opBenchmark_ToLowerBytes/default-161738732267.4 ns/op48 B/op1 allocs/opBenchmark_ToLowerBytes/default-161790649167.4 ns/op48 B/op1 allocs/opBenchmark_ToUpperBytes/fiber-164614372925.7 ns/op0 B/op0 allocs/opBenchmark_ToUpperBytes/fiber-164798925025.6 ns/op0 B/op0 allocs/opBenchmark_ToUpperBytes/default-161558085476.7 ns/op48 B/op1 allocs/opBenchmark_ToUpperBytes/default-161538120276.9 ns/op48 B/op1 allocs/opBenchmark_TrimRightBytes/fiber-167057245916.3 ns/op8 B/op1 allocs/opBenchmark_TrimRightBytes/fiber-167498359716.3 ns/op8 B/op1 allocs/opBenchmark_TrimRightBytes/default-161621257874.1 ns/op40 B/op2 allocs/opBenchmark_TrimRightBytes/default-161643468674.1 ns/op40 B/op2 allocs/opBenchmark_TrimLeftBytes/fiber-167498312816.3 ns/op8 B/op1 allocs/opBenchmark_TrimLeftBytes/fiber-167498500216.3 ns/op8 B/op1 allocs/opBenchmark_TrimLeftBytes/default-162104786856.5 ns/op40 B/op2 allocs/opBenchmark_TrimLeftBytes/default-162104801556.5 ns/op40 B/op2 allocs/opBenchmark_TrimBytes/fiber-165453330721.9 ns/op16 B/op1 allocs/opBenchmark_TrimBytes/fiber-165453281221.9 ns/op16 B/op1 allocs/opBenchmark_TrimBytes/default-161428251784.6 ns/op48 B/op2 allocs/opBenchmark_TrimBytes/default-161411450884.7 ns/op48 B/op2 allocs/opBenchmark_EqualFolds/fiber-163635515332.6 ns/op0 B/op0 allocs/opBenchmark_EqualFolds/fiber-163635559332.6 ns/op0 B/op0 allocs/opBenchmark_EqualFolds/default-161518622078.1 ns/op0 B/op0 allocs/opBenchmark_EqualFolds/default-161518641278.3 ns/op0 B/op0 allocs/opBenchmark_UUID/fiber-162399462549.8 ns/op48 B/op1 allocs/opBenchmark_UUID/fiber-162399476850.1 ns/op48 B/op1 allocs/opBenchmark_UUID/default-163233772371 ns/op208 B/op6 allocs/opBenchmark_UUID/default-163251295370 ns/op208 B/op6 allocs/opBenchmark_GetString/unsafe-1610000000000.709 ns/op0 B/op0 allocs/opBenchmark_GetString/unsafe-1610000000000.713 ns/op0 B/op0 allocs/opBenchmark_GetString/default-165998620219.0 ns/op16 B/op1 allocs/opBenchmark_GetString/default-166314293919.0 ns/op16 B/op1 allocs/opBenchmark_GetBytes/unsafe-165083601952.36 ns/op0 B/op0 allocs/opBenchmark_GetBytes/unsafe-165083599792.35 ns/op0 B/op0 allocs/opBenchmark_GetBytes/default-164614301925.7 ns/op16 B/op1 allocs/opBenchmark_GetBytes/default-164443473425.6 ns/op16 B/op1 allocs/opBenchmark_GetMIME/fiber-162142375056.3 ns/op0 B/op0 allocs/opBenchmark_GetMIME/fiber-162142355955.4 ns/op0 B/op0 allocs/opBenchmark_GetMIME/default-166735282173 ns/op0 B/op0 allocs/opBenchmark_GetMIME/default-166895002172 ns/op0 B/op0 allocs/opBenchmark_StatusMessage/fiber-1610000000000.766 ns/op0 B/op0 allocs/opBenchmark_StatusMessage/fiber-1610000000000.767 ns/op0 B/op0 allocs/opBenchmark_StatusMessage/default-161595385287.50 ns/op0 B/op0 allocs/opBenchmark_StatusMessage/default-161597508307.51 ns/op0 B/op0 allocs/opBenchmark_ToUpper/fiber-162221740853.3 ns/op48 B/op1 allocs/opBenchmark_ToUpper/fiber-162263655453.2 ns/op48 B/op1 allocs/opBenchmark_ToUpper/default-1611108600108 ns/op48 B/op1 allocs/opBenchmark_ToUpper/default-1611108580108 ns/op48 B/op1 allocs/opBenchmark_ToLower/fiber-162399472049.8 ns/op48 B/op1 allocs/opBenchmark_ToLower/fiber-162399476850.1 ns/op48 B/op1 allocs/opBenchmark_ToLower/default-1610808376110 ns/op48 B/op1 allocs/opBenchmark_ToLower/default-1610617034110 ns/op48 B/op1 allocs/opBenchmark_TrimRight/fiber-164136995212.94 ns/op0 B/op0 allocs/opBenchmark_TrimRight/fiber-164151316872.91 ns/op0 B/op0 allocs/opBenchmark_TrimRight/default-162399457749.1 ns/op32 B/op1 allocs/opBenchmark_TrimRight/default-162448424949.4 ns/op32 B/op1 allocs/opBenchmark_TrimLeft/fiber-163796611703.13 ns/op0 B/op0 allocs/opBenchmark_TrimLeft/fiber-163820799413.16 ns/op0 B/op0 allocs/opBenchmark_TrimLeft/default-162790087741.9 ns/op32 B/op1 allocs/opBenchmark_TrimLeft/default-162856489842.0 ns/op32 B/op1 allocs/opBenchmark_Trim/fiber-162366328564.96 ns/op0 B/op0 allocs/opBenchmark_Trim/fiber-162375700854.93 ns/op0 B/op0 allocs/opBenchmark_Trim/default-161845722166.0 ns/op32 B/op1 allocs/opBenchmark_Trim/default-161817732865.9 ns/op32 B/op1 allocs/opBenchmark_Trim/default.trimspace-161889337706.33 ns/op0 B/op0 allocs/opBenchmark_Trim/default.trimspace-161840076496.42 ns/op0 B/op0 allocs/op