Giter Club home page Giter Club logo

Comments (6)

aliiohs avatar aliiohs commented on September 26, 2024

i will try it.

from dubbo-go-hessian2.

wongoo avatar wongoo commented on September 26, 2024

@aliiohs first u must ensure what's the encode result of null java date in java, then encode it to a zero go date, eg var _zeroDate time.Time. pls let me know for any question.

from dubbo-go-hessian2.

lovepoem avatar lovepoem commented on September 26, 2024

I will have a try

from dubbo-go-hessian2.

lovepoem avatar lovepoem commented on September 26, 2024

/**java

/**
 * Writes a null value to the stream.
 * The null will be written with the following syntax
 * <p>
 * <code><pre>
 * N
 * </pre></code>
 *
 * @param value the string value to write.
 */
@Override
public void writeNull()
        throws IOException {
    os.write('N');
}

**/

when a field is null , the write stream is N

/**java

/**
 * Reads an arbitrary object from the input stream when the type
 * is unknown.
 */
public Object readObject(List<Class<?>> expectedTypes)
        throws IOException {
    int tag = read();

    switch (tag) {
        case 'N':
            return null;

*/

when a stream is N, then get null in java

from dubbo-go-hessian2.

lovepoem avatar lovepoem commented on September 26, 2024

then encode it to a zero go date

What is zero go date, how to produce it ? @wongoo

from dubbo-go-hessian2.

wongoo avatar wongoo commented on September 26, 2024

@lovepoem a definition without assigment of time.Time is a zero go date , eg var _zeroDate time.Time

from dubbo-go-hessian2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.