GoFrame v1.11 release, Go foundation development framework

GF(Go Frame) https://goframe.org  is a modular, high-performance, production-level development framework Go basis. Achieve a relatively complete infrastructure, including the development of common core components, such as: cache, log, file, time, queues, arrays, collections, strings, timer, command line, file lock, lock memory, object pooling, connection pooling, resource management, data validation, data encoding, file monitoring, regular tasks, database ORM, TCP / UDP component, process management / communication, concurrency-safe container and so on. And provides a series of Web services development of core components, such as: Router, Cookie, Session, Middleware , service registration, configuration management, template engine, etc., supports a warm restart, hot update, multi-domain, multi-port, multi-service, HTTPS, Rewrite and other characteristics.

GFRich foundation module, complete tool chain, comprehensive development documents. Open Source For nearly two years, GFto get the recognition and support of more and more small partners, from nameless until now nobody has been widely used in micro-service, networking, enterprise-level block chain, electric business systems, banking systems and other production projects , the experienced one million, ten million test project, 2019 was the year of cloud code giteenamed the GVPmost valuable open source projects. GFIt is growing rapidly, the current iteration of the law maintained release version of 1-2 months, community activists, Welcome to the GFfamily.

Finally, I wish you all a Happy New Year 2020, Year of the Rat down!

New features

  1. New year, new weather, a large number of documents updated the official website: https://goframe.org/index
  2. GFToolchain update: https://goframe.org/toolchain/cli
    • Add gf runhot compile and run the command;
    • New gf docker Docker mirror compile command;
    • New gf gen model powerful model to automatically generate commands;
    • gf buildIncreased profile configuration commands support;
    • A large number of command-line tools improve their work;
    • New automatic proxy settings characteristics;
  3. Database ORMof new features:

Improvements

container

  1. garray
    • New New*ArrayRangeway to initialize an array to create the specified range of values.
    • New Iterator*method for array items elements callback traversal.
    • Improve unit testing.
  2. gvar
    • Improvements MapStrStr, MapStrStrDeepmethods.

net

  1. ghttp
    • Improved HTTP client, increase automatically submit arguments Content-Typerecognition.
    • RequestObject addition Parsemethod, i.e. for the efficient conversion parameter verification objects.
    • Request.GetPost*All methods marked as deprecateda unified client parameters submission to QueryStringFormBody.
    • Remove Responsewhen parsing the template Get/ Postbuilt-in variables, new QueryFormRequestbuilt-in variables: https://goframe.org/net/ghttp/response/template
    • Improvement Response.WriteJson*and Response.WriteXml*methods, increase string[]bytesupport for type parameters.
    • ServerNew GetRouterArraymethod for exposure and to get to the application layer Serverrouting list.
    • ServerNew Usemethod, which is BindMiddlewareDefaultan alias for registered global middleware.
    • ServerNew RouteOverWriteconfiguration items used to control whether to override the automatic routing conflicts at the time of registration, off by default and prompt.
    • ServerNew Gracefulconfiguration item, for controlling the characteristics of the GR on / off, turned on by default at the single service scenarios.
    • Improve unit testing.
  2. gtcp
    • Improved simple protocol packets under transmission and reception function.
    • The connection pooling default cache expiration time 30in seconds amended as 10seconds.
    • Improve unit testing.

database

  1. gdb

    • New Asdata table alias method.
    • Improved data tables, automatic identification character field security feature added.
    • New DBdatabase object switching method.
    • New TXchaining transaction support method.
    • Improve unit testing.

      os

  2. gcfg

    • New GetMapStrStrmethod.
  3. gcmd

    • Increase parameter parsing strictstrict parameters, the default strict resolved, the error is returned when the specified parameter / option name does not exist.
  4. genv

    • Improved Removemethod supports multiple environment variables deleted.
  5. gfile

    • Improved TempDirtemporary directory acquisition method, in *nixdefault under the system /tmpdirectory.
    • New ReadLinesReadByteLinesmethod for reading the contents of the file rows callback.
    • New Copy*method to copy files / directories, support recursion.
    • New Replace*method to replace the contents of the file directory, support recursion.
    • Improved Scan*methods to retrieve and return all files / directories under the specified directory, specify the file mode support, support for recursion.
    • Improve unit testing.
  6. gproc

    • Improved command line to run method.
    • Improved Shellcommand file retrieval logic.
    • The design process to improve communication between experimental.
  7. gtime

    • And a method of packet Timetime stamp method object SecondMillisecondMicrosecondNanosecondmarked as revoked, and add TimestampTimestampMilliTimestampMicroTimestampNanoreplaced.
    • Note that the above modifications may be older versions and compatibility issues.
  8. gview

    • Analytic functions, cache design improvements.
    • New encodedecodeHTML coding / decoding function template.
    • New concatstring concatenation template function.
    • New dumptemplate function, function is similar to g.Dumpthe method.
    • New AutoEncodeconfiguration item, for transcoding output HTMLcontent, commonly used to prevent XSSdisabled by default. Note that this feature does not affect the includebuilt-in functions:  https://goframe.org/os/gview/xss
    • Unit Testing perfect.

crypto

  1. gmd5
    • Increases MustEncryptMustEncryptBytesMustEncryptStringMustEncryptFilemethod.
  2. gsha1
    • Increase MustEncryptFilemethod

encoding

  1. gbase64
    • New MustEncodeFileMustEncodeFileToStringMustDecodeMustDecodeToStringmethod.
  2. gjson/gparser
    • New GetMapStrStrmethod.
    • New Must*method for generating the specified data format conversion failure panicerror, not returned errorparameters.

util

  1. gconv
    • Improved Convertmethods increase []int32[]int64[]uint[]uint32[]uint64[]float32[]float64data type conversion support.
    • Improved Stringstring conversion method support for indicator parameter.
    • Improved Map* code structure and properties Map conversion method.
    • New FloatsFloat32sFloat64sDui []float32[]float64type conversion method.
    • New IntsInt32sInt64sDui []int[]int32[]int64type conversion method.
    • New UintsUint32sUint64sDui []uint[]uint32[]uint64type conversion method.
    • Improve unit testing.

frame

  1. gins
    • All singleton object generated when the acquisition failure panicerror.

Bug Fix

  1. Increase in common formats such as misrouted /user//indexcompatibility support.
  2. Repair gtcp/ gudpinterval time unit problems in data reception.
  3. Repair gfile/ gspath/ gfsnotifypackage does not question the existence of strict judgment document.
  4. Repair gproc.Killmethod in windowsblocking problems running under the system.
  5. Repair gstr.TrimLeftStr/ gstr.TrimRightStrarray when a string is replaced with the replacement string length less than the length of the overflow.

Guess you like

Origin www.oschina.net/news/112783/goframe-1-11-released